Просмотр исходного кода

fix(editor): page history for non-sync graph

Andelf 1 год назад
Родитель
Сommit
c3df737390
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      src/main/frontend/components/page_menu.cljs

+ 2 - 0
src/main/frontend/components/page_menu.cljs

@@ -75,6 +75,8 @@
           _ (state/sub :auth/id-token)
           file-sync-graph-uuid (and (user-handler/logged-in?)
                                     (file-sync-handler/enable-sync?)
+                                    ;; FIXME: Sync state is not cleared when switching to a new graph
+                                    (file-sync-handler/current-graph-sync-on?)
                                     (file-sync-handler/get-current-graph-uuid))]
       (when (and page (not block?))
         (->>