From 90bc9943bcbf08dc8c07c67f5b0d92203686cf00 Mon Sep 17 00:00:00 2001 From: Pablo Alba Date: Tue, 13 Dec 2022 12:46:53 +0100 Subject: [PATCH] :bug: Fix expand right sidebar on workspace inspect --- frontend/src/app/main/ui/viewer/handoff/right_sidebar.cljs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/main/ui/viewer/handoff/right_sidebar.cljs b/frontend/src/app/main/ui/viewer/handoff/right_sidebar.cljs index 63db1d487..55529d062 100644 --- a/frontend/src/app/main/ui/viewer/handoff/right_sidebar.cljs +++ b/frontend/src/app/main/ui/viewer/handoff/right_sidebar.cljs @@ -7,6 +7,7 @@ (ns app.main.ui.viewer.handoff.right-sidebar (:require [app.main.data.workspace :as dw] + [app.main.store :as st] [app.main.ui.components.shape-icon :as si] [app.main.ui.components.tab-container :refer [tab-container tab-element]] [app.main.ui.icons :as i] @@ -72,7 +73,7 @@ :shapes shapes :on-expand (fn [] (when (= from :workspace) - (dw/set-inspect-expanded (not expanded))) + (st/emit! (dw/set-inspect-expanded (not @expanded)))) (swap! expanded not)) :from from}]]]]] [:div.empty @@ -80,5 +81,4 @@ [:div (tr "handoff.empty.select")] [:span.tool-window-bar-icon i/help] [:div (tr "handoff.empty.help")] - [:button.btn-primary.action {:on-click #(dom/open-new-window "https://help.penpot.app/user-guide/inspect/")} (tr "handoff.empty.more-info")] - ])]])) + [:button.btn-primary.action {:on-click #(dom/open-new-window "https://help.penpot.app/user-guide/inspect/")} (tr "handoff.empty.more-info")]])]]))