diff --git a/assets/js/hooks/Mapper/components/mapInterface/widgets/SystemSignatures/SystemSignaturesContent/SystemSignaturesContent.tsx b/assets/js/hooks/Mapper/components/mapInterface/widgets/SystemSignatures/SystemSignaturesContent/SystemSignaturesContent.tsx index 337728c7..fbf67684 100644 --- a/assets/js/hooks/Mapper/components/mapInterface/widgets/SystemSignatures/SystemSignaturesContent/SystemSignaturesContent.tsx +++ b/assets/js/hooks/Mapper/components/mapInterface/widgets/SystemSignatures/SystemSignaturesContent/SystemSignaturesContent.tsx @@ -57,7 +57,10 @@ interface SystemSignaturesContentProps { onSelect?: (signature: SystemSignature) => void; onLazyDeleteChange?: (value: boolean) => void; onCountChange?: (count: number) => void; - onPendingChange?: (pending: ExtendedSystemSignature[], undo: () => void) => void; + onPendingChange?: ( + pending: React.MutableRefObject>, + undo: () => void, + ) => void; deletionTiming?: number; filterSignature?: (signature: SystemSignature) => boolean; } diff --git a/assets/js/hooks/Mapper/components/mapInterface/widgets/SystemSignatures/hooks/usePendingDeletions.ts b/assets/js/hooks/Mapper/components/mapInterface/widgets/SystemSignatures/hooks/usePendingDeletions.ts index 2591e084..89f9a51b 100644 --- a/assets/js/hooks/Mapper/components/mapInterface/widgets/SystemSignatures/hooks/usePendingDeletions.ts +++ b/assets/js/hooks/Mapper/components/mapInterface/widgets/SystemSignatures/hooks/usePendingDeletions.ts @@ -70,6 +70,7 @@ export function usePendingDeletions({ }); delete pendingDeletionMapRef.current[sig.eve_id]; setSignatures(prev => prev.filter(x => x.eve_id !== sig.eve_id)); + onPendingChange?.(pendingDeletionMapRef, clearPendingDeletions); }, finalDuration, );