mirror of
https://github.com/penpot/penpot.git
synced 2025-05-17 16:26:12 +02:00
🐛 Fix error screen when operations over comments fail
This commit is contained in:
parent
4b1fa2589e
commit
a052bfd2fa
4 changed files with 42 additions and 21 deletions
|
@ -94,6 +94,14 @@
|
|||
:type :error
|
||||
:timeout 3000}))))
|
||||
|
||||
(defmethod ptk/handle-error :comment-error
|
||||
[_]
|
||||
(ts/schedule
|
||||
(st/emitf
|
||||
(dm/show {:content "There was an error with the comment"
|
||||
:type :error
|
||||
:timeout 3000}))))
|
||||
|
||||
;; This is a pure frontend error that can be caused by an active
|
||||
;; assertion (assertion that is preserved on production builds). From
|
||||
;; the user perspective this should be treated as internal error.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue