From fc4221b04739e6a6332c02519c648b1e1060d3c0 Mon Sep 17 00:00:00 2001 From: Pablo Alba Date: Thu, 16 Jan 2025 12:56:43 +0100 Subject: [PATCH] :bug: Fix missing cleanup of storage on bad plugin url --- frontend/src/app/main/ui/dashboard.cljs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/main/ui/dashboard.cljs b/frontend/src/app/main/ui/dashboard.cljs index 635cd13df..7649a264d 100644 --- a/frontend/src/app/main/ui/dashboard.cljs +++ b/frontend/src/app/main/ui/dashboard.cljs @@ -209,7 +209,9 @@ (open-permissions-dialog plugin)) (st/emit! (notif/error (tr "dashboard.plugins.parse-error"))))) (fn [_] - (st/emit! (notif/error (tr "dashboard.plugins.bad-url")))))))))) + (st/emit! (notif/error (tr "dashboard.plugins.bad-url")))))) + (binding [storage/*sync* true] + (swap! storage/session dissoc :plugin-url)))))) (defn use-templates-import [can-edit? template-url default-project-id]