Merge pull request #4926 from penpot/niwinz-fix-error-report

🐛 Fix regression on error reporting
This commit is contained in:
Alejandro 2024-07-26 08:27:37 +02:00 committed by GitHub
commit 4b6d3546e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 15 additions and 20 deletions

View file

@ -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))))))))))