mirror of
https://github.com/logseq/logseq.git
synced 2026-05-04 02:46:45 +00:00
refactor: DRY
This commit is contained in:
@@ -546,15 +546,13 @@
|
||||
(when (or (seq retract-refs) pre-block?)
|
||||
(ui-handler/re-render-root!))
|
||||
|
||||
(when (state/git-auto-push?)
|
||||
(repo-handler/push repo nil)))
|
||||
(repo-handler/push-if-auto-enabled! repo))
|
||||
|
||||
:else
|
||||
nil))
|
||||
|
||||
(seq (state/get-changed-files))
|
||||
(when (state/git-auto-push?)
|
||||
(repo-handler/push repo nil))
|
||||
(repo-handler/push-if-auto-enabled! repo)
|
||||
|
||||
:else
|
||||
nil))))
|
||||
@@ -1016,8 +1014,7 @@
|
||||
(route-handler/redirect! {:to :page
|
||||
:path-params {:name (:page/name page)}})
|
||||
(ui-handler/re-render-root!))
|
||||
(when (state/git-auto-push?)
|
||||
(repo-handler/push repo nil))))))
|
||||
(repo-handler/push-if-auto-enabled! repo)))))
|
||||
|
||||
(defn remove-block-property!
|
||||
[block-id key]
|
||||
|
||||
Reference in New Issue
Block a user