From 778accabee61e2038826c12e5ae7bf4345c9cda1 Mon Sep 17 00:00:00 2001 From: Alexander Rind <1217527+alex-rind@users.noreply.github.com> Date: Thu, 17 Aug 2023 22:47:00 +0200 Subject: [PATCH] [bugfix] don't show horizons in PdfView --- src/views/PdfView.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/PdfView.vue b/src/views/PdfView.vue index 29cde16..f803899 100644 --- a/src/views/PdfView.vue +++ b/src/views/PdfView.vue @@ -102,8 +102,9 @@ export default defineComponent({ // eslint-disable-next-line @typescript-eslint/no-explicit-any let hor: any = useRouter().currentRoute.value.query.hor; - hor = /true/i.test(hor); - hor ? "" : store.commit("view/toggle", "horizons"); + if (/true/i.test(hor)) { + store.commit("view/enable", "horizons"); + } // eslint-disable-next-line @typescript-eslint/no-explicit-any let con: any = useRouter().currentRoute.value.query.con;