mirror of
https://github.com/wanderer-industries/wanderer
synced 2025-12-12 18:56:01 +00:00
fix(Core): fixed lazy delete reset state
This commit is contained in:
@@ -57,7 +57,10 @@ interface SystemSignaturesContentProps {
|
|||||||
onSelect?: (signature: SystemSignature) => void;
|
onSelect?: (signature: SystemSignature) => void;
|
||||||
onLazyDeleteChange?: (value: boolean) => void;
|
onLazyDeleteChange?: (value: boolean) => void;
|
||||||
onCountChange?: (count: number) => void;
|
onCountChange?: (count: number) => void;
|
||||||
onPendingChange?: (pending: ExtendedSystemSignature[], undo: () => void) => void;
|
onPendingChange?: (
|
||||||
|
pending: React.MutableRefObject<Record<string, ExtendedSystemSignature>>,
|
||||||
|
undo: () => void,
|
||||||
|
) => void;
|
||||||
deletionTiming?: number;
|
deletionTiming?: number;
|
||||||
filterSignature?: (signature: SystemSignature) => boolean;
|
filterSignature?: (signature: SystemSignature) => boolean;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -70,6 +70,7 @@ export function usePendingDeletions({
|
|||||||
});
|
});
|
||||||
delete pendingDeletionMapRef.current[sig.eve_id];
|
delete pendingDeletionMapRef.current[sig.eve_id];
|
||||||
setSignatures(prev => prev.filter(x => x.eve_id !== sig.eve_id));
|
setSignatures(prev => prev.filter(x => x.eve_id !== sig.eve_id));
|
||||||
|
onPendingChange?.(pendingDeletionMapRef, clearPendingDeletions);
|
||||||
},
|
},
|
||||||
finalDuration,
|
finalDuration,
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user