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
|
(defn- update-draw-content-width
|
||||||
[state]
|
[state]
|
||||||
(let [el ^js (rum/dom-node state)]
|
(when-let [el ^js (rum/dom-node state)]
|
||||||
(loop [el (.querySelector el ".draw-wrap")]
|
(loop [el (.querySelector el ".draw-wrap")]
|
||||||
(cond
|
(cond
|
||||||
(or (nil? el) (undefined? el) (undefined? (.-classList el)))
|
(or (nil? el) (undefined? el) (undefined? (.-classList el)))
|
||||||
|
|
Loading…
Reference in New Issue