fix: correctly passes block path inside buildFieldSchemaMap (#3162)
This commit is contained in:
@@ -29,8 +29,9 @@ export const buildFieldSchemaMap = (entityFields: Field[]): Map<string, Field[]>
|
||||
switch (field.type) {
|
||||
case 'blocks':
|
||||
field.blocks.forEach((block) => {
|
||||
fieldMap.set(`${currentPath}.${block.slug}`, block.fields);
|
||||
buildUpMap(block.fields, currentPath);
|
||||
const blockPath = `${currentPath}.${block.slug}`;
|
||||
fieldMap.set(blockPath, block.fields);
|
||||
buildUpMap(block.fields, blockPath);
|
||||
});
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user