mirror of
https://github.com/logseq/logseq.git
synced 2026-05-04 10:56:32 +00:00
refactor(editor): remove unused code
This commit is contained in:
@@ -1298,13 +1298,11 @@
|
||||
dummy?)
|
||||
(let [value (text/remove-level-spaces value format true)
|
||||
new-value (block/with-levels value format block)
|
||||
properties (with-timetracking-properties block new-value)]
|
||||
(let [new-block {:block block
|
||||
:new-value new-value}]
|
||||
;; FIXME: somehow frontend.components.editor's will-unmount event will loop forever
|
||||
;; maybe we shouldn't save the block/file in "will-unmount" event?
|
||||
(save-block-if-changed! block new-value
|
||||
{:custom-properties properties}))))))
|
||||
properties (with-timetracking-properties block value)]
|
||||
;; FIXME: somehow frontend.components.editor's will-unmount event will loop forever
|
||||
;; maybe we shouldn't save the block/file in "will-unmount" event?
|
||||
(save-block-if-changed! block new-value
|
||||
{:custom-properties properties})))))
|
||||
|
||||
(defn on-up-down
|
||||
[state e up?]
|
||||
|
||||
Reference in New Issue
Block a user