Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Spread getRegisteredBlocks return value
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejolley committed Jul 22, 2021
1 parent a3c4fb0 commit 2bfe6de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/checkout/blocks-registry/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export const getRegisteredBlocks = (
area: keyof RegisteredBlocks
): Array< string > => {
assertValidArea( area );
return registeredBlocks[ area ];
return [ ...registeredBlocks[ area ] ];
};

export type CheckoutBlockOptions = {
Expand Down

0 comments on commit 2bfe6de

Please sign in to comment.