fix(publishing): fix get page 404 error

pull/884/head
defclass 2020-12-09 11:16:07 +08:00 committed by Tienson Qin
parent 5bbc43b30d
commit 06d32ef2b0
1 changed files with 1 additions and 1 deletions

View File

@ -66,10 +66,10 @@
(p/let [result (project-handler/delete-project current-project)]
(when (:result result)
(reset! editor-state :display)
(state/remove-current-project)
(state/reset-published-pages)
(doseq [{:keys [title]} pages]
(page-handler/page-add-properties! title {:published false}))
(state/remove-current-project)
(notification/show! "The project was deleted successfully." :success))))))
:background "red")]