bugfix: Turns out this should now be 403 instead (#438)
This commit is contained in:
parent
3b8976fd51
commit
7cc07158ab
|
|
@ -58,7 +58,7 @@ function fetchGetDashboardComponents () {
|
||||||
window.fetch(window.restBaseUrl + 'GetDashboardComponents', {
|
window.fetch(window.restBaseUrl + 'GetDashboardComponents', {
|
||||||
cors: 'cors'
|
cors: 'cors'
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (!res.ok && res.status === 401) {
|
if (!res.ok && res.status === 403) {
|
||||||
window.location.href = window.settings.AuthLoginUrl
|
window.location.href = window.settings.AuthLoginUrl
|
||||||
}
|
}
|
||||||
return res.json()
|
return res.json()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue