fix(api): handle null return type for localStorage getItem
This commit is contained in:
@@ -26,7 +26,7 @@ const WIZARD_PORT = Number(import.meta.env.VITE_WIZARD_PORT) || 18080
|
||||
const WIZARD_BASE = `http://127.0.0.1:${WIZARD_PORT}`
|
||||
|
||||
const getApiBase = () => {
|
||||
return localStorage.getItem('HF_BACKEND_BASE_URL')
|
||||
return localStorage.getItem('HF_BACKEND_BASE_URL') ?? undefined
|
||||
}
|
||||
|
||||
type AppState = 'checking' | 'setup' | 'ready'
|
||||
|
||||
Reference in New Issue
Block a user