Merge pull request #494 from ONLYOFFICE/bugfix/68353

Bugfix/68353
This commit is contained in:
Alexey Safronov 2024-06-17 14:50:22 +04:00 committed by GitHub
commit 0a32abdc36
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View File

@ -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) {

View File

@ -119,3 +119,5 @@ export const onSDKRequestRename = async (
const title = (event as TRenameEvent).data;
await updateFile(id, title);
};
export const onOutdatedVersion = () => window.location.reload();