From fcdab79802ebd68e31659cf59a7043b65c37ccc9 Mon Sep 17 00:00:00 2001 From: Guarzo Date: Wed, 4 Jun 2025 13:04:00 -0400 Subject: [PATCH] fix: remove callbacks from effect dependencies --- .../widgets/SystemSignatures/hooks/useSystemSignaturesData.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/hooks/Mapper/components/mapInterface/widgets/SystemSignatures/hooks/useSystemSignaturesData.ts b/assets/js/hooks/Mapper/components/mapInterface/widgets/SystemSignatures/hooks/useSystemSignaturesData.ts index 77e2eb80..088bdb1f 100644 --- a/assets/js/hooks/Mapper/components/mapInterface/widgets/SystemSignatures/hooks/useSystemSignaturesData.ts +++ b/assets/js/hooks/Mapper/components/mapInterface/widgets/SystemSignatures/hooks/useSystemSignaturesData.ts @@ -141,11 +141,11 @@ export const useSystemSignaturesData = ({ return; } handleGetSignatures(); - }, [handleGetSignatures, setSignatures, systemId, undoPending]); + }, [systemId]); useEffect(() => { onCountChange?.(signatures.length); - }, [onCountChange, signatures]); + }, [signatures]); return { signatures: signatures.filter(sig => !sig.deleted),