chore(refactor): improve stores/config
types (#3190)
Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/3190 Reviewed-by: konrad <k@knt.li> Co-authored-by: WofWca <wofwca@protonmail.com> Co-committed-by: WofWca <wofwca@protonmail.com>
This commit is contained in:
@ -113,8 +113,8 @@ export const checkAndSetApiUrl = (url: string): Promise<string> => {
|
||||
window.API_URL = oldUrl
|
||||
throw e
|
||||
})
|
||||
.then(r => {
|
||||
if (typeof r !== 'undefined') {
|
||||
.then(success => {
|
||||
if (success) {
|
||||
localStorage.setItem('API_URL', window.API_URL)
|
||||
return window.API_URL
|
||||
}
|
||||
|
Reference in New Issue
Block a user