@@ -376,7 +376,7 @@
[:div.r.flex.drag-region
(when (and current-repo
- (state/rtc-graph? current-repo)
+ (ldb/get-graph-rtc-uuid (db/get-db))
(user-handler/logged-in?)
(config/db-based-graph? current-repo)
(user-handler/team-member?))
@@ -925,11 +925,6 @@ Similar to re-frame subscriptions"
[]
(:rtc/graphs @state))
-(defn rtc-graph?
- [graph]
- (some (fn [rtc-graph]
- (= (:url rtc-graph) graph)) (get-rtc-graphs)))
-
(defn get-remote-graph-info-by-uuid
[uuid]
(when-let [graphs (seq (get-in @state [:file-sync/remote-graphs :graphs]))]