Support missing images folder.

This commit is contained in:
2023-08-13 23:50:52 +03:00
parent 840c002834
commit a1929fe33c
3 changed files with 24 additions and 5 deletions
@@ -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 = [];