Skip to content

Commit

Permalink
fix: fix reactive options
Browse files Browse the repository at this point in the history
  • Loading branch information
daybrush committed Jan 2, 2023
1 parent 0e37841 commit ef4831d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/scenejs/src/reactive/Scene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const SCENE_REACTIVE: ReactiveAdapter<
const dataObject = isFunction(dataProps) ? dataProps() : dataProps;
const scene = isScene(dataObject)
? dataObject
: new Scene(dataObject?.props, data.options);
: new Scene(dataObject, data.options);
const obj = scene.state as any as ReactiveObject<AnimatorState>;
const observers = getObservers(obj);

Expand Down
2 changes: 1 addition & 1 deletion packages/scenejs/src/reactive/SceneItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const SCENE_ITEM_REACTIVE: ReactiveAdapter<
const dataObject = isFunction(dataProps) ? dataProps() : dataProps;
const sceneItem = isSceneItem(dataObject)
? dataObject
: new SceneItem(dataObject?.props, data.options);
: new SceneItem(dataObject, data.options);
const obj = sceneItem.state as any as ReactiveObject<AnimatorState>;
const observers = getObservers(obj);
const totalDuration = computed(() => {
Expand Down

0 comments on commit ef4831d

Please sign in to comment.