mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-06 06:41:56 +00:00
The settings popup in HappyComposer did not show any option selected when permissionMode or modelMode was null, since destructuring defaults only handle undefined, not null. This fix uses the ?? operator to properly handle both null and undefined cases, falling back to 'default' in both.