Skip to content

Commit

Permalink
fix: decoration page runtime error
Browse files Browse the repository at this point in the history
  • Loading branch information
tsengyushiang committed Mar 5, 2024
1 parent 429b1a9 commit f1b71ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/editors/decoration/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ const Editor = ({ data }) => {
}, []);

useEffect(() => {
threeRef.current.cameraControls.setEnable(mode === MODE.SELECT);
threeRef.current?.cameraControls.setEnable(mode === MODE.SELECT);
}, [mode]);

const focusedMedia = media[focusedIndex];
Expand Down

0 comments on commit f1b71ef

Please sign in to comment.