Parcourir la source

fix: ensure page refreshes with force when alerting about outdated revisions

Shun Miyazawa il y a 5 mois
Parent
commit
b9a8ca9ca8
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      apps/app/src/client/services/side-effects/page-updated.ts

+ 1 - 1
apps/app/src/client/services/side-effects/page-updated.ts

@@ -45,7 +45,7 @@ export const usePageUpdatedEffect = (): void => {
 
       // !!CAUTION!! Timing of calling openPageStatusAlert may clash with components/PageEditor/conflict.tsx
       if (isRevisionOutdated && editorMode === EditorMode.View) {
-        openPageStatusAlert({ hideEditorMode: EditorMode.Editor, onRefleshPage: fetchCurrentPage });
+        openPageStatusAlert({ hideEditorMode: EditorMode.Editor, onRefleshPage: () => fetchCurrentPage({ force: true }) });
       }
 
       // Clear cache