refactor: simplify editor timeout

This commit is contained in:
Tienson Qin
2021-04-18 17:27:07 +08:00
parent c61a93112e
commit 2f808c14bf
7 changed files with 73 additions and 98 deletions

View File

@@ -85,7 +85,7 @@
path)]
(file/alter-file (state/get-current-repo) new-path (string/trim value)
{:re-render-root? true})))))))
(when-not (contains? #{:insert :indent-outdent :auto-save} (state/get-editor-op))
(when-not (contains? #{:insert :indent :outdent} (state/get-editor-op))
(editor-handler/save-block! (get-state state) value))))
state)