mirror of https://github.com/logseq/logseq
fix(graph-parser): avoid parsing illegal id
parent
03c3a413c9
commit
333017235b
|
@ -431,7 +431,8 @@
|
|||
(or (when-let [custom-id (or (get-in properties [:properties :custom-id])
|
||||
(get-in properties [:properties :custom_id])
|
||||
(get-in properties [:properties :id]))]
|
||||
(let [custom-id (and (string? custom-id) (string/trim custom-id))]
|
||||
;; guard against non-string custom-ids
|
||||
(when-let [custom-id (and (string? custom-id) (string/trim custom-id))]
|
||||
(some-> custom-id parse-uuid)))
|
||||
(d/squuid)))
|
||||
|
||||
|
|
Loading…
Reference in New Issue