From 238ec60f8968518e59e99405576a376d9583cac2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Moya?= Date: Mon, 10 Jan 2022 14:10:29 +0100 Subject: [PATCH] :bug: Fix viewer header controls when navigating from workspace --- frontend/src/app/main/data/workspace.cljs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/main/data/workspace.cljs b/frontend/src/app/main/data/workspace.cljs index 41fb045ad..0f737583f 100644 --- a/frontend/src/app/main/data/workspace.cljs +++ b/frontend/src/app/main/data/workspace.cljs @@ -1386,7 +1386,9 @@ (watch [_ state _] (let [{:keys [current-file-id current-page-id]} state pparams {:file-id (or file-id current-file-id)} - qparams {:page-id (or page-id current-page-id) :section section}] + qparams (cond-> {:page-id (or page-id current-page-id)} + (some? section) + (assoc :section section))] (rx/of ::dwp/force-persist (rt/nav-new-window* {:rname :viewer :path-params pparams