This commit is contained in:
Philipinho
2026-02-01 10:46:32 +00:00
parent 4d322e9157
commit 1b82959859
@@ -31,7 +31,7 @@ export default function HistoryModalBody({ pageId }: Props) {
); );
const [highlightChanges, setHighlightChanges] = useAtom(highlightChangesAtom); const [highlightChanges, setHighlightChanges] = useAtom(highlightChangesAtom);
const [diffCounts] = useAtom(diffCountsAtom); const [diffCounts] = useAtom(diffCountsAtom);
const setDiffCounts = useSetAtom(diffCountsAtom); const [, setDiffCounts] = useAtom(diffCountsAtom);
const [currentChangeIndex, setCurrentChangeIndex] = useState(0); const [currentChangeIndex, setCurrentChangeIndex] = useState(0);
const scrollViewportRef = useRef<HTMLDivElement>(null); const scrollViewportRef = useRef<HTMLDivElement>(null);
@@ -39,6 +39,7 @@ export default function HistoryModalBody({ pageId }: Props) {
useEffect(() => { useEffect(() => {
setActiveHistoryId(""); setActiveHistoryId("");
setActiveHistoryPrevId(""); setActiveHistoryPrevId("");
// @ts-ignore
setDiffCounts(null); setDiffCounts(null);
}, [pageId]); }, [pageId]);