From 7b8866495f8a52dc40195033d462749249917b3e Mon Sep 17 00:00:00 2001 From: Laila Los <44241786+ElectronicBlueberry@users.noreply.github.com> Date: Fri, 5 Apr 2024 15:21:41 +0200 Subject: [PATCH] fix computed setter infinite loop --- client/src/components/User/UserActivityBarSettings.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/components/User/UserActivityBarSettings.vue b/client/src/components/User/UserActivityBarSettings.vue index 878f7377ea3d..5b892b9a79e6 100644 --- a/client/src/components/User/UserActivityBarSettings.vue +++ b/client/src/components/User/UserActivityBarSettings.vue @@ -11,13 +11,13 @@ const enableActivityBar: WritableComputedRef = computed({ get: () => { return userStore.showActivityBar; }, - set: () => { + set: (toggle) => { // always toggle tool side panel when enabling activity bar if (userStore.toggledSideBar !== "tools") { userStore.toggleSideBar("tools"); } // toggle activity bar - userStore.toggleActivityBar(); + userStore.showActivityBar = toggle; }, });