mirror of
https://github.com/penpot/penpot.git
synced 2025-01-23 15:09:10 -05:00
✨ Prevent double error asignation on persistence error
This commit is contained in:
parent
af389fe63a
commit
a261a57868
1 changed files with 1 additions and 3 deletions
|
@ -12,7 +12,6 @@
|
||||||
[app.common.uuid :as uuid]
|
[app.common.uuid :as uuid]
|
||||||
[app.main.data.changes :as dch]
|
[app.main.data.changes :as dch]
|
||||||
[app.main.repo :as rp]
|
[app.main.repo :as rp]
|
||||||
[app.util.router :as rt]
|
|
||||||
[beicon.v2.core :as rx]
|
[beicon.v2.core :as rx]
|
||||||
[potok.v2.core :as ptk]))
|
[potok.v2.core :as ptk]))
|
||||||
|
|
||||||
|
@ -131,8 +130,7 @@
|
||||||
(rx/concat
|
(rx/concat
|
||||||
(if (= :authentication (:type cause))
|
(if (= :authentication (:type cause))
|
||||||
(rx/empty)
|
(rx/empty)
|
||||||
(rx/of (rt/assign-exception cause)
|
(rx/of (ptk/data-event ::error cause)
|
||||||
(ptk/data-event ::error cause)
|
|
||||||
(update-status :error)))
|
(update-status :error)))
|
||||||
(rx/of (discard-persistence-state))
|
(rx/of (discard-persistence-state))
|
||||||
(rx/throw cause))))))))))
|
(rx/throw cause))))))))))
|
||||||
|
|
Loading…
Add table
Reference in a new issue