commit
0a32abdc36
@ -48,6 +48,7 @@ import {
|
||||
onSDKWarning,
|
||||
onSDKError,
|
||||
onSDKRequestRename,
|
||||
onOutdatedVersion,
|
||||
} from "@/utils/events";
|
||||
import useInit from "@/hooks/useInit";
|
||||
import useEditorEvents from "@/hooks/useEditorEvents";
|
||||
@ -231,6 +232,7 @@ const Editor = ({
|
||||
onDocumentStateChange,
|
||||
onMetaChange,
|
||||
onMakeActionLink,
|
||||
onOutdatedVersion,
|
||||
};
|
||||
|
||||
if (successAuth) {
|
||||
|
@ -119,3 +119,5 @@ export const onSDKRequestRename = async (
|
||||
const title = (event as TRenameEvent).data;
|
||||
await updateFile(id, title);
|
||||
};
|
||||
|
||||
export const onOutdatedVersion = () => window.location.reload();
|
||||
|
Loading…
Reference in New Issue
Block a user