mirror of https://github.com/logseq/logseq
fix(draw): invalid dom element
parent
161e0ee56a
commit
a6a0596a7d
|
@ -35,7 +35,7 @@
|
|||
|
||||
(defn- update-draw-content-width
|
||||
[state]
|
||||
(let [el ^js (rum/dom-node state)]
|
||||
(when-let [el ^js (rum/dom-node state)]
|
||||
(loop [el (.querySelector el ".draw-wrap")]
|
||||
(cond
|
||||
(or (nil? el) (undefined? el) (undefined? (.-classList el)))
|
||||
|
|
Loading…
Reference in New Issue