Skip to content

Commit 6d51f68

Browse files
committed
fix: await previous save call before resetting isSaving flag and triggering another call to avoid timestamp mismatch
1 parent eb50701 commit 6d51f68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/stores/saving.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ const syncPresentationToServer = async () => {
120120
if (!snapshot || !snapshot.dirty) return
121121

122122
// if there's an unsynced snapshot locally, sync it to server
123-
syncSnapshotToServer(snapshot)
123+
await syncSnapshotToServer(snapshot)
124124
} catch (err) {
125125
console.error('Sync to server failed: ', err)
126126
} finally {

0 commit comments

Comments
 (0)