1
0
Эх сурвалжийг харах

fix(publishing): fix get page 404 error

defclass 4 жил өмнө
parent
commit
06d32ef2b0

+ 1 - 1
src/main/frontend/components/publishing.cljs

@@ -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")]