فهرست منبع

fix: add uuid? pre check for <check-remote-graph-exists

Tienson Qin 3 سال پیش
والد
کامیت
d70ada1825
2فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 1 0
      src/main/frontend/components/file_sync.cljs
  2. 1 0
      src/main/frontend/fs/sync.cljs

+ 1 - 0
src/main/frontend/components/file_sync.cljs

@@ -208,6 +208,7 @@
                                     nil
 
                                     (and synced-file-graph?
+                                         (second @fs-sync/graphs-txid)
                                          (async/<! (fs-sync/<check-remote-graph-exists (second @fs-sync/graphs-txid))))
                                     (fs-sync/sync-start)
 

+ 1 - 0
src/main/frontend/fs/sync.cljs

@@ -2720,6 +2720,7 @@
 
 (defn <check-remote-graph-exists
   [local-graph-uuid]
+  {:pre [(uuid? local-graph-uuid)]}
   (go
     (let [result (->> (<! (<list-remote-graphs remoteapi))
                       :Graphs