mirror of
https://github.com/docmost/docmost.git
synced 2026-05-07 06:23:06 +08:00
30 seconds
This commit is contained in:
@@ -112,7 +112,7 @@ export default function DrawioView(props: NodeViewProps) {
|
|||||||
if (isDirtyRef.current && !isSavingRef.current && drawioRef.current) {
|
if (isDirtyRef.current && !isSavingRef.current && drawioRef.current) {
|
||||||
drawioRef.current.exportDiagram({ format: "xmlsvg" });
|
drawioRef.current.exportDiagram({ format: "xmlsvg" });
|
||||||
}
|
}
|
||||||
}, 60_000);
|
}, 30_000);
|
||||||
|
|
||||||
return () => clearInterval(interval);
|
return () => clearInterval(interval);
|
||||||
}, [opened]);
|
}, [opened]);
|
||||||
|
|||||||
@@ -162,7 +162,7 @@ export default function ExcalidrawView(props: NodeViewProps) {
|
|||||||
if (isDirtyRef.current && !isSavingRef.current) {
|
if (isDirtyRef.current && !isSavingRef.current) {
|
||||||
saveData(false).catch(() => {});
|
saveData(false).catch(() => {});
|
||||||
}
|
}
|
||||||
}, 60_000);
|
}, 30_000);
|
||||||
|
|
||||||
return () => clearInterval(interval);
|
return () => clearInterval(interval);
|
||||||
}, [opened, saveData]);
|
}, [opened, saveData]);
|
||||||
|
|||||||
Reference in New Issue
Block a user