mirror of
https://github.com/penpot/penpot.git
synced 2025-05-18 23:46:11 +02:00
🐛 Fix recursion error on not-found.
This commit is contained in:
parent
b7cbe49cb2
commit
0c82c6f2f5
1 changed files with 6 additions and 5 deletions
|
@ -9,12 +9,13 @@
|
||||||
|
|
||||||
(ns app.main
|
(ns app.main
|
||||||
(:require
|
(:require
|
||||||
[app.config :as cfg]
|
|
||||||
[app.common.uuid :as uuid]
|
|
||||||
[app.common.spec :as us]
|
[app.common.spec :as us]
|
||||||
[app.main.repo :as rp]
|
[app.common.uuid :as uuid]
|
||||||
|
[app.config :as cfg]
|
||||||
[app.main.data.auth :refer [logout]]
|
[app.main.data.auth :refer [logout]]
|
||||||
|
[app.main.data.messages :as dm]
|
||||||
[app.main.data.users :as udu]
|
[app.main.data.users :as udu]
|
||||||
|
[app.main.repo :as rp]
|
||||||
[app.main.store :as st]
|
[app.main.store :as st]
|
||||||
[app.main.ui :as ui]
|
[app.main.ui :as ui]
|
||||||
[app.main.ui.confirm]
|
[app.main.ui.confirm]
|
||||||
|
@ -22,12 +23,12 @@
|
||||||
[app.main.worker]
|
[app.main.worker]
|
||||||
[app.util.dom :as dom]
|
[app.util.dom :as dom]
|
||||||
[app.util.i18n :as i18n]
|
[app.util.i18n :as i18n]
|
||||||
|
[app.util.logging :as log]
|
||||||
[app.util.object :as obj]
|
[app.util.object :as obj]
|
||||||
[app.util.router :as rt]
|
[app.util.router :as rt]
|
||||||
[app.util.storage :refer [storage]]
|
[app.util.storage :refer [storage]]
|
||||||
[app.util.theme :as theme]
|
[app.util.theme :as theme]
|
||||||
[app.util.timers :as ts]
|
[app.util.timers :as ts]
|
||||||
[app.util.logging :as log]
|
|
||||||
[beicon.core :as rx]
|
[beicon.core :as rx]
|
||||||
[cljs.spec.alpha :as s]
|
[cljs.spec.alpha :as s]
|
||||||
[rumext.alpha :as mf]))
|
[rumext.alpha :as mf]))
|
||||||
|
@ -71,7 +72,7 @@
|
||||||
(st/emit! (rt/nav :auth-login))
|
(st/emit! (rt/nav :auth-login))
|
||||||
|
|
||||||
(nil? match)
|
(nil? match)
|
||||||
(st/emit! (rt/nav :not-found))
|
(st/emit! (dm/assign-exception {:type :not-found}))
|
||||||
|
|
||||||
:else
|
:else
|
||||||
(st/emit! #(assoc % :route match)))))
|
(st/emit! #(assoc % :route match)))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue