From 7007eb702039c2cb277c77543dfe12173bccf3eb Mon Sep 17 00:00:00 2001 From: jtricerolph Date: Thu, 23 Jul 2026 11:29:35 +0000 Subject: [PATCH] =?UTF-8?q?Fix=20API=20keys=20list=20not=20showing=20?= =?UTF-8?q?=E2=80=94=20unwrap=20.keys=20from=20response?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Backend returns { keys: [...] } but frontend was treating the whole object as the array, so apiKeys.length was always falsy. Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/pages/Settings.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/pages/Settings.tsx b/frontend/src/pages/Settings.tsx index 292bf07..06d261f 100644 --- a/frontend/src/pages/Settings.tsx +++ b/frontend/src/pages/Settings.tsx @@ -5760,7 +5760,8 @@ const ApiKeysPage: React.FC = () => { queryFn: async () => { const response = await fetch('/forecasting/api/config/api-keys') if (!response.ok) throw new Error('Failed to fetch API keys') - return response.json() + const data = await response.json() + return data.keys }, })