From 0c82c6f2f59798c84afd77ed73e552b3771be0aa Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 4 Feb 2021 13:25:51 +0100 Subject: [PATCH] :bug: Fix recursion error on not-found. --- frontend/src/app/main.cljs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/frontend/src/app/main.cljs b/frontend/src/app/main.cljs index 52c33ff2d..0e678384f 100644 --- a/frontend/src/app/main.cljs +++ b/frontend/src/app/main.cljs @@ -9,12 +9,13 @@ (ns app.main (:require - [app.config :as cfg] - [app.common.uuid :as uuid] [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.messages :as dm] [app.main.data.users :as udu] + [app.main.repo :as rp] [app.main.store :as st] [app.main.ui :as ui] [app.main.ui.confirm] @@ -22,12 +23,12 @@ [app.main.worker] [app.util.dom :as dom] [app.util.i18n :as i18n] + [app.util.logging :as log] [app.util.object :as obj] [app.util.router :as rt] [app.util.storage :refer [storage]] [app.util.theme :as theme] [app.util.timers :as ts] - [app.util.logging :as log] [beicon.core :as rx] [cljs.spec.alpha :as s] [rumext.alpha :as mf])) @@ -71,7 +72,7 @@ (st/emit! (rt/nav :auth-login)) (nil? match) - (st/emit! (rt/nav :not-found)) + (st/emit! (dm/assign-exception {:type :not-found})) :else (st/emit! #(assoc % :route match)))))