Skip to content

Commit

Permalink
Ensures that the registration process can continue without being inte…
Browse files Browse the repository at this point in the history
…rrupted by potential errors related to missing or invalid component/block paths
  • Loading branch information
DjidjaleskaSandra committed Apr 26, 2024
1 parent 50455ec commit 2ec7a6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/editor/registration.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ export const registerBlocks = (
overridesComponentPath = null,
) => {

const componentsManifest = componentsManifestPath.keys().map(componentsManifestPath);
const blocksManifests = blocksManifestPath.keys().map(blocksManifestPath);
const componentsManifest = componentsManifestPath ? componentsManifestPath.keys().map(componentsManifestPath) : [];
const blocksManifests = blocksManifestPath ? blocksManifestPath.keys().map(blocksManifestPath): [];

// Set all store values.
setStore();
Expand Down

0 comments on commit 2ec7a6e

Please sign in to comment.