Fix API keys list not showing — unwrap .keys from response
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 <noreply@anthropic.com>
This commit is contained in:
parent
d47e6dff40
commit
7007eb7020
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
},
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue