mirror of
https://github.com/docmost/docmost.git
synced 2026-05-20 00:14:10 +08:00
type
This commit is contained in:
@@ -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]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user