From 1965490bee5b9385f3207593f9f413fc93c6a054 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Fri, 14 Mar 2025 11:53:25 +0100 Subject: [PATCH] :paperclip: Use proper catch matching on tokens drop operation --- frontend/src/app/main/data/tokens.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/main/data/tokens.cljs b/frontend/src/app/main/data/tokens.cljs index f30c0563f..6c5ca8fdc 100644 --- a/frontend/src/app/main/data/tokens.cljs +++ b/frontend/src/app/main/data/tokens.cljs @@ -254,7 +254,7 @@ (rx/of (dch/commit-changes changes) (wtu/update-workspace-tokens))) - (catch js/Error e + (catch :default e (rx/of (drop-error (ex-data e)))))))) @@ -266,7 +266,7 @@ (when-let [changes (clt/generate-move-token-set (pcb/empty-changes it) (get-tokens-lib state) drop-opts)] (rx/of (dch/commit-changes changes) (wtu/update-workspace-tokens))) - (catch js/Error e + (catch :default e (rx/of (drop-error (ex-data e))))))))