Browse Source

fix: can't delete remote graph

Tienson Qin 1 month ago
parent
commit
ee80960146
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/main/frontend/handler/repo.cljs

+ 3 - 1
src/main/frontend/handler/repo.cljs

@@ -89,7 +89,9 @@
   (when-let [repos' (seq (concat (map (fn [{:keys [sync-meta metadata] :as repo}]
                                         (let [graph-id (some-> (or (:kv/value metadata)
                                                                    (second sync-meta)) str)]
-                                          (if graph-id (assoc repo :GraphUUID graph-id) repo)))
+                                          (if (and graph-id (nil? (:GraphUUID repo)))
+                                            (assoc repo :GraphUUID graph-id)
+                                            repo)))
                                       local-repos)
                                  (some->> remote-repos
                                           (map #(assoc % :remote? true)))))]