From 1b829598598f5caf628cec876dd353d9aeaf3022 Mon Sep 17 00:00:00 2001 From: Philipinho <16838612+Philipinho@users.noreply.github.com> Date: Sun, 1 Feb 2026 10:46:32 +0000 Subject: [PATCH] type --- .../features/page-history/components/history-modal-body.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/client/src/features/page-history/components/history-modal-body.tsx b/apps/client/src/features/page-history/components/history-modal-body.tsx index 0da39aeb..12e1ee05 100644 --- a/apps/client/src/features/page-history/components/history-modal-body.tsx +++ b/apps/client/src/features/page-history/components/history-modal-body.tsx @@ -31,7 +31,7 @@ export default function HistoryModalBody({ pageId }: Props) { ); const [highlightChanges, setHighlightChanges] = useAtom(highlightChangesAtom); const [diffCounts] = useAtom(diffCountsAtom); - const setDiffCounts = useSetAtom(diffCountsAtom); + const [, setDiffCounts] = useAtom(diffCountsAtom); const [currentChangeIndex, setCurrentChangeIndex] = useState(0); const scrollViewportRef = useRef(null); @@ -39,6 +39,7 @@ export default function HistoryModalBody({ pageId }: Props) { useEffect(() => { setActiveHistoryId(""); setActiveHistoryPrevId(""); + // @ts-ignore setDiffCounts(null); }, [pageId]);