Skip to content

Commit

Permalink
B #-: Fixes null check for appConfig (#3310)
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Hansson <vhansson@opennebula.io>
  • Loading branch information
vichansson authored Nov 27, 2024
1 parent 987bf1a commit ee25fdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fireedge/src/server/routes/entrypoints/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ router.get('*', async (req, res) => {

const PRELOAD_STATE = { ...(store.getState() || {}) }

if (appConfig?.default_zone?.id !== 'undefined' && PRELOAD_STATE?.general) {
if (appConfig?.default_zone?.id !== undefined && PRELOAD_STATE?.general) {
PRELOAD_STATE.general = {
...PRELOAD_STATE.general,
...{
Expand Down

0 comments on commit ee25fdc

Please sign in to comment.