fix(group): delete group when there's no children

This commit is contained in:
austaras 2022-08-10 16:37:31 +08:00 committed by Austaras
parent f381de0d8b
commit 56cdcf8622

View File

@ -36,6 +36,9 @@ export class GridBlock extends BaseView {
}
return block.remove();
}
if (block.childrenIds.length === 0) {
return block.remove();
}
return true;
}
}