This commit is contained in:
Shivansh Kumar 2025-05-01 19:56:05 +00:00 committed by GitHub
commit dcd010c475
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 29 additions and 13 deletions

View file

@ -482,7 +482,7 @@ const ExcalidrawWrapper = () => {
collabAPI?.isCollaborating() &&
!isCollaborationLink(window.location.href)
) {
collabAPI.stopCollaboration(false);
await collabAPI.stopCollaboration(false);
}
excalidrawAPI.updateScene({ appState: { isLoading: true } });
@ -980,9 +980,9 @@ const ExcalidrawWrapper = () => {
"exit",
"collaboration",
],
perform: () => {
perform: async () => {
if (collabAPI) {
collabAPI.stopCollaboration();
await collabAPI.stopCollaboration();
if (!collabAPI.isCollaborating()) {
setShareDialogState({ isOpen: false });
}