This commit is contained in:
Philipinho
2026-02-01 18:44:25 +00:00
parent eba5ae2eb3
commit f2bc0b5049
3 changed files with 2 additions and 6 deletions
@@ -18,7 +18,7 @@ export function useHistoryReset(pageId: string) {
useEffect(() => {
setActiveHistoryId("");
setActiveHistoryPrevId("");
// @ts-ignore - null is valid to clear the counts
// @ts-ignore
setDiffCounts(null);
}, [pageId, setActiveHistoryId, setActiveHistoryPrevId, setDiffCounts]);
}
@@ -21,10 +21,6 @@ import {
SpaceCaslSubject,
} from "@/features/space/permissions/permissions.type";
/**
* Manages history restore functionality including permission checking,
* confirmation modal, and the actual restore operation.
*/
export function useHistoryRestore() {
const { t } = useTranslation();
@@ -13,7 +13,7 @@ import { IPageHistory } from "@/features/page-history/types/page.types";
import { IPagination } from "@/lib/types.ts";
import { queryClient } from "@/main";
const HISTORY_STALE_TIME = 10 * 60 * 1000;
const HISTORY_STALE_TIME = 60 * 60 * 1000;
export function prefetchPageHistory(historyId: string) {
return queryClient.prefetchQuery({