mirror of
https://github.com/docmost/docmost.git
synced 2026-05-08 07:13:06 +08:00
type
This commit is contained in:
@@ -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<HTMLDivElement>(null);
|
||||
@@ -39,6 +39,7 @@ export default function HistoryModalBody({ pageId }: Props) {
|
||||
useEffect(() => {
|
||||
setActiveHistoryId("");
|
||||
setActiveHistoryPrevId("");
|
||||
// @ts-ignore
|
||||
setDiffCounts(null);
|
||||
}, [pageId]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user