From a98111f68d69c78308150e53ff010ab4ae2a3e21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marina=20L=C3=B3pez?= Date: Fri, 7 Feb 2025 11:07:47 +0100 Subject: [PATCH] :fire: Remove unnecessary prevent and stop (#5799) --- frontend/src/app/main/ui/dashboard/placeholder.cljs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/frontend/src/app/main/ui/dashboard/placeholder.cljs b/frontend/src/app/main/ui/dashboard/placeholder.cljs index d836fcf24..042c0815a 100644 --- a/frontend/src/app/main/ui/dashboard/placeholder.cljs +++ b/frontend/src/app/main/ui/dashboard/placeholder.cljs @@ -24,9 +24,7 @@ [{:keys [on-create on-finish-import project-id] :as props}] (let [file-input (mf/use-ref nil) on-add-library (mf/use-fn - (fn [event] - (dom/prevent-default event) - (dom/stop-propagation event) + (fn [_] (st/emit! (ptk/event ::ev/event {::ev/name "explore-libraries-click" ::ev/origin "dashboard" :section "empty-placeholder-projects"}))