From 1c3dcd9dbee5d6ba0d4eb86a2ff4b45a31ba6c9d Mon Sep 17 00:00:00 2001 From: Alex Grozav Date: Fri, 27 Jan 2023 12:16:34 +0200 Subject: [PATCH] fix: Fix baseUrl assignment (no-changelog) (#5266) fix: fix baseUrl assignment (no-changelog) --- packages/editor-ui/src/stores/n8nRootStore.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/editor-ui/src/stores/n8nRootStore.ts b/packages/editor-ui/src/stores/n8nRootStore.ts index 44a619941bdc6..e8b72a4e7936a 100644 --- a/packages/editor-ui/src/stores/n8nRootStore.ts +++ b/packages/editor-ui/src/stores/n8nRootStore.ts @@ -10,7 +10,7 @@ const { VUE_APP_URL_BASE_API, VUE_APP_ENDPOINT_REST } = import.meta.env; export const useRootStore = defineStore(STORES.ROOT, { state: (): RootState => ({ baseUrl: - VUE_APP_URL_BASE_API ?? window.BASE_PATH === '/{{BASE_PATH}}/' ? '/' : window.BASE_PATH, + VUE_APP_URL_BASE_API ?? (window.BASE_PATH === '/{{BASE_PATH}}/' ? '/' : window.BASE_PATH), defaultLocale: 'en', endpointWebhook: 'webhook', endpointWebhookTest: 'webhook-test',