mirror of https://github.com/logseq/logseq
fix: 'Click to edit' console errors
When clicking to create a page's first block, value can be nil in buggy fn. Related to LOG-3166experiment/tanstack-table
parent
305b7ff570
commit
159f7eadc4
|
@ -814,11 +814,12 @@
|
|||
nil)]))
|
||||
|
||||
(defn- editor-on-hide
|
||||
[state value type e]
|
||||
[state value* type e]
|
||||
(let [repo (state/get-current-repo)
|
||||
action (state/get-editor-action)
|
||||
[opts _id config] (:rum/args state)
|
||||
block (:block opts)]
|
||||
block (:block opts)
|
||||
value (or value* "")]
|
||||
(cond
|
||||
(and (= type :esc) (exist-editor-commands-popup?))
|
||||
nil
|
||||
|
|
Loading…
Reference in New Issue