Merge pull request #22458 from nextcloud/fix/weather-status-navigate-error
Hide error if a background request fails during navigation
This commit is contained in:
commit
2c6c5fece6
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -236,8 +236,12 @@ export default {
|
||||||
this.startLoop()
|
this.startLoop()
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
if (err?.code === 'ECONNABORTED') {
|
||||||
|
console.info('The weather status request was cancelled because the user navigates.')
|
||||||
|
return
|
||||||
|
}
|
||||||
showError(t('weather_status', 'There was an error getting the weather status information.'))
|
showError(t('weather_status', 'There was an error getting the weather status information.'))
|
||||||
console.debug(err)
|
console.error(err)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
startLoop() {
|
startLoop() {
|
||||||
|
|
Loading…
Reference in New Issue