Skip to content

Commit 37d9db4

Browse files
committed
Return null if guiTheme requests fails
1 parent 3908815 commit 37d9db4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ui/src/utils/guiTheme.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ async function fetchGuiTheme (params) {
4949
if (response.listguithemesresponse.guiThemes) {
5050
return response.listguithemesresponse.guiThemes[0]
5151
}
52+
}).catch(error => {
53+
console.error('Error fetching GUI theme:', error)
54+
return null
5255
})
5356
}
5457

0 commit comments

Comments
 (0)