Преглед на файлове

fix(core): type issues on state

alvarosabu преди 2 години
родител
ревизия
46c9b52c2e
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      packages/tres/src/core/useTres/index.ts

+ 1 - 1
packages/tres/src/core/useTres/index.ts

@@ -17,7 +17,7 @@ export interface TresState {
 }
 }
 
 
 const state: TresState = shallowReactive({
 const state: TresState = shallowReactive({
-  camera: null,
+  camera: undefined,
   cameras: [],
   cameras: [],
 })
 })