From 2d535d687148e101040b5a76e89987ecc34cc402 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Coletta?= Date: Wed, 15 Oct 2025 11:03:13 +0200 Subject: [PATCH] fix(WW-4258): Send baseProjectRef when loading branches For migrated configs without baseProjectRef field, the branches endpoint was receiving an empty baseProjectRef parameter. Now falls back to the computed baseRef value extracted from projectUrl. --- src/components/Configuration/SettingsEditMultiEnv.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/Configuration/SettingsEditMultiEnv.vue b/src/components/Configuration/SettingsEditMultiEnv.vue index b347499..7203c5a 100644 --- a/src/components/Configuration/SettingsEditMultiEnv.vue +++ b/src/components/Configuration/SettingsEditMultiEnv.vue @@ -699,12 +699,11 @@ export default { const cfg = this.getCurrentEnvConfig(env); const baseRef = overrideRef || cfg.baseProjectRef || cfg.projectUrl?.replace('https://', '').replace('.supabase.co', ''); const ref = baseRef; - const paramsBaseRef = cfg.baseProjectRef || overrideRef || ''; if (!ref || !this.hasOAuthToken()) return; const { data } = await wwLib.wwPlugins.supabase.requestAPI({ method: 'GET', path: `/projects/${ref}/branches`, - params: { baseProjectRef: paramsBaseRef }, + params: { baseProjectRef: cfg.baseProjectRef || overrideRef || baseRef }, }); const branches = data?.data || []; if (this.$set) {