expression bug fixes (#336)

Co-authored-by: Victor <victor@storyteller.ai>
This commit is contained in:
Victor OandVictor authored and GitHub committed 2024-05-07 14:14:34 -07:00
1 parent 3c7630bbc9
commit ec9d0525ba
1 file changed
+2 -1
@@ -143,7 +143,8 @@ export const ControlPanelSceneObject = () => {
useEffect(() => {
const isCurrentObj =
(editorEngine?.selected?.uuid || "") === initializedObj ||
appUiState.controlPanel.currentSceneObject.object_uuid === initializedObj;
(appUiState?.controlPanel?.currentSceneObject?.object_uuid || "") ===
initializedObj;
// TODO this causes a subtle bug because it renders way too many times.
if (!appUiState.controlPanel.currentSceneObject) {
return;