Skip to content

Commit

Permalink
Use nullish coalescing operator
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Jul 10, 2024
1 parent 921fb02 commit 02e846a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/edit-widgets/src/store/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const getWidgets = createRegistrySelector( ( select ) =>
[ widget.id ]: widget,
} ),
{}
) || {}
) ?? {}
);
},
() => [
Expand Down

0 comments on commit 02e846a

Please sign in to comment.