bugfix: Turns out this should now be 403 instead (#438)

This commit is contained in:
Simon Dahlbacka 2024-10-14 16:53:23 +03:00 committed by GitHub
parent 3b8976fd51
commit 7cc07158ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ function fetchGetDashboardComponents () {
window.fetch(window.restBaseUrl + 'GetDashboardComponents', {
cors: 'cors'
}).then(res => {
if (!res.ok && res.status === 401) {
if (!res.ok && res.status === 403) {
window.location.href = window.settings.AuthLoginUrl
}
return res.json()