From de9b49e408b4a3787b1f52fa12f8b15096036900 Mon Sep 17 00:00:00 2001 From: Andrew Bastin Date: Fri, 10 May 2024 16:30:36 +0530 Subject: [PATCH] fix: make workspaceSelectorFlagEnabled into a computed property --- packages/hoppscotch-common/src/components/app/Header.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/hoppscotch-common/src/components/app/Header.vue b/packages/hoppscotch-common/src/components/app/Header.vue index 7b895107b..e43782267 100644 --- a/packages/hoppscotch-common/src/components/app/Header.vue +++ b/packages/hoppscotch-common/src/components/app/Header.vue @@ -274,8 +274,9 @@ const toast = useToast() /** * Feature flag to enable the workspace selector login conversion */ -const workspaceSelectorFlagEnabled = - platform.platformFeatureFlags.workspaceSwitcherLogin?.value +const workspaceSelectorFlagEnabled = computed( + () => !!platform.platformFeatureFlags.workspaceSwitcherLogin?.value +) /** * Once the PWA code is initialized, this holds a method