[Bug] Add null check on customSpec being null (#3810)

This commit is contained in:
Chenlei Hu
2025-05-07 17:09:52 -04:00
committed by GitHub
parent 3aea2c120a
commit df86da3d67

View File

@@ -506,8 +506,7 @@ export function mergeIfValid(
}
}
// @ts-expect-error fixme ts strict error
return { customConfig: customSpec[1] }
return { customConfig: customSpec?.[1] ?? {} }
}
app.registerExtension({