mirror of
https://github.com/logseq/logseq.git
synced 2026-05-01 01:16:27 +00:00
Decouple graph-parser util from app util usage
For tiny util heavily used fns like safe-re-find and uuid-string?, decouple graph-parser from so much of the app
This commit is contained in:
@@ -10,7 +10,6 @@
|
||||
[frontend.db.utils :as db-utils]
|
||||
[frontend.state :as state]
|
||||
[frontend.util :as util :refer [react]]
|
||||
[logseq.graph-parser.util :as gp-util]
|
||||
[cljs.spec.alpha :as s]
|
||||
[clojure.core.async :as async]))
|
||||
|
||||
@@ -230,7 +229,7 @@
|
||||
affected-keys (concat
|
||||
(mapcat
|
||||
(fn [block-id]
|
||||
(let [block-id (if (and (string? block-id) (gp-util/uuid-string? block-id))
|
||||
(let [block-id (if (and (string? block-id) (util/uuid-string? block-id))
|
||||
[:block/uuid block-id]
|
||||
block-id)]
|
||||
(when-let [block (db-utils/entity block-id)]
|
||||
|
||||
Reference in New Issue
Block a user