Browse Source

chore: code cleanup

Tienson Qin 2 months ago
parent
commit
5705dd3597
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/main/frontend/components/repo.cljs

+ 1 - 2
src/main/frontend/components/repo.cljs

@@ -107,8 +107,7 @@
                                    [:span.my-2.flex.font-normal.opacity-75
                                    [:span.my-2.flex.font-normal.opacity-75
                                     [:small "⚠️ Notice that we can't recover this graph after being deleted. Make sure you have backups before deleting it."]]])
                                     [:small "⚠️ Notice that we can't recover this graph after being deleted. Make sure you have backups before deleting it."]]])
                                  (p/then (fn []
                                  (p/then (fn []
-                                           (repo-handler/remove-repo! repo)
-                                           (state/pub-event! [:graph/unlinked repo (state/get-current-repo)]))))))}
+                                           (repo-handler/remove-repo! repo))))))}
               "Delete local graph"))
               "Delete local graph"))
            (when (and root
            (when (and root
                       (user-handler/logged-in?)
                       (user-handler/logged-in?)