ui: only notify error on default error screen

This commit is contained in:
Junyi Du
2022-04-23 04:39:25 +08:00
committed by Tienson Qin
parent 6746c8813e
commit efacbbae5d
2 changed files with 11 additions and 1 deletions

View File

@@ -97,7 +97,7 @@
(when-let [route-match (state/sub :route-match)]
(let [route-name (get-in route-match [:data :name])]
(when-let [view (:view (:data route-match))]
(ui/catch-error
(ui/catch-error-and-notify
(helpful-default-error-screen)
(if (= :draw route-name)
(view route-match)