Skip to content

Commit

Permalink
Convert parent to array in block processing
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Oct 18, 2024
1 parent 97cb5b5 commit fe4e3be
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/blocks/src/store/process-block-type.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,5 +197,12 @@ export const processBlockType =
return;
}

if (
typeof settings.parent === 'string' ||
settings.parent instanceof String
) {
settings.parent = [ settings.parent ];
}

return settings;
};

0 comments on commit fe4e3be

Please sign in to comment.