fix: Resolve type mismatch in settings page credentials fetch
This commit is contained in:
parent
e5d0cd483a
commit
818edf2575
1 changed files with 0 additions and 3 deletions
|
|
@ -65,9 +65,6 @@ export default function SettingsPage() {
|
|||
// Ensure we handle the response correctly (api.ts wraps it in { services: ... })
|
||||
if (res && res.services) {
|
||||
setCredentials(res.services)
|
||||
} else if (Array.isArray(res)) {
|
||||
// Fallback if API returns array directly
|
||||
setCredentials(res)
|
||||
}
|
||||
} catch (error) {
|
||||
console.error("Failed to fetch credentials", error)
|
||||
|
|
|
|||
Loading…
Reference in a new issue