More isVisible deps

This commit is contained in:
megatwig 2026-04-20 07:04:16 +01:00 committed by GitHub
parent 517e5d9a36
commit bf2e2ccede
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -257,7 +257,7 @@ export const SceneEditPanel: React.FC<IProps> = ({
Mousetrap.unbind("d d");
};
}
}, []);
}, [isVisible]);
useEffect(() => {
const toFilter = Scrapers?.data?.listScrapers ?? [];

View file

@ -36,7 +36,7 @@ export const SceneMarkersPanel: React.FC<ISceneMarkersPanelProps> = ({
return () => {
Mousetrap.unbind("n");
};
}, []);
}, [isVisible]);
if (loading) return null;