removed line causing control panel loop (#338)

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