From a261a57868fcf6831221197860802f822fb1b9b9 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 25 Jul 2024 15:46:36 +0200 Subject: [PATCH] :sparkles: Prevent double error asignation on persistence error --- frontend/src/app/main/data/persistence.cljs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/frontend/src/app/main/data/persistence.cljs b/frontend/src/app/main/data/persistence.cljs index 2e917e784..9a17eda3f 100644 --- a/frontend/src/app/main/data/persistence.cljs +++ b/frontend/src/app/main/data/persistence.cljs @@ -12,7 +12,6 @@ [app.common.uuid :as uuid] [app.main.data.changes :as dch] [app.main.repo :as rp] - [app.util.router :as rt] [beicon.v2.core :as rx] [potok.v2.core :as ptk])) @@ -131,8 +130,7 @@ (rx/concat (if (= :authentication (:type cause)) (rx/empty) - (rx/of (rt/assign-exception cause) - (ptk/data-event ::error cause) + (rx/of (ptk/data-event ::error cause) (update-status :error))) (rx/of (discard-persistence-state)) (rx/throw cause))))))))))