Skip to content

Commit

Permalink
ctrl-o creates a broken page, if page is being created and not existent
Browse files Browse the repository at this point in the history
  • Loading branch information
tiensonqin committed Oct 7, 2020
1 parent 758729e commit a8471bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion web/src/main/frontend/handler/editor.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -1033,7 +1033,7 @@
[]
(when-let [page (get-nearest-page)]
(let [page-name (string/lower-case page)]
(.blur js/document.activeElement)
(state/clear-edit!)
(route-handler/redirect! {:to :page
:path-params {:name page-name}}))))

Expand Down
3 changes: 1 addition & 2 deletions web/src/main/frontend/handler/repo.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -541,8 +541,7 @@
:or {pull-now? true}}]
(periodically-pull repo-url pull-now?)
(when (and (not (false? (:git-auto-push (state/get-config repo-url))))
;; (not config/dev?)
)
(not config/dev?))
(periodically-push-tasks repo-url)))

(defn create-repo!
Expand Down

0 comments on commit a8471bb

Please sign in to comment.