From 635c6efe428313e2f9913771248aa76cd4ee324c Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Wed, 2 Oct 2024 12:32:10 +0200 Subject: [PATCH] :bug: Fix problem with Ctrl+F shortcut on the dashboard --- CHANGES.md | 6 ++++++ frontend/src/app/main/ui/dashboard/search.cljs | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 3e92235c3..30d378d54 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,11 @@ # CHANGELOG +## 2.2.1 + +### :bug: Bugs fixed + +- Fix problem with Ctrl+F shortcut on the dashboard [Taiga #8876](https://tree.taiga.io/project/penpot/issue/8876) + ## 2.2.0 ### :rocket: Epics and highlights diff --git a/frontend/src/app/main/ui/dashboard/search.cljs b/frontend/src/app/main/ui/dashboard/search.cljs index 401d33494..862fc700a 100644 --- a/frontend/src/app/main/ui/dashboard/search.cljs +++ b/frontend/src/app/main/ui/dashboard/search.cljs @@ -19,7 +19,8 @@ (mf/defc search-page [{:keys [team search-term] :as props}] - (let [result (mf/deref refs/dashboard-search-result) + (let [search-term (or search-term "") + result (mf/deref refs/dashboard-search-result) [rowref limit] (hooks/use-dynamic-grid-item-width)] (mf/use-effect