Support missing images folder.
This commit is contained in:
@@ -26,6 +26,10 @@ export async function createDistFolder(blockName, projectPath = '') {
|
||||
}
|
||||
|
||||
export function getBlockFields(block = {}, type = 'content') {
|
||||
if (!block['field_groups']) {
|
||||
return [];
|
||||
}
|
||||
|
||||
const fields_group = block['field_groups'].find((group) => group.name === type);
|
||||
const fields = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user