Include activePanelId in dependency array in App.tsx

This commit is contained in:
2026-04-02 22:34:16 +02:00
parent c62a6bcb39
commit 009d1a41db

View File

@@ -1274,7 +1274,7 @@ export function App({ store, initialStatusMessage }: AppProps) {
return () => {
window.removeEventListener("keydown", handleWindowKeyDown);
};
}, [editorState.selection, editorState.toolMode, brushList.length, entityList.length]);
}, [activePanelId, editorState.selection, editorState.toolMode, brushList.length, entityList.length]);
const applySceneName = () => {
const normalizedName = sceneNameDraft.trim() || "Untitled Scene";