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]);