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

This commit is contained in:
austaras authored and Austaras committed 2022-08-10 17:01:35 +08:00
1 parent f381de0d8b
commit 56cdcf8622
1 file changed
+3
@@ -36,6 +36,9 @@ export class GridBlock extends BaseView {
} }
return block.remove(); return block.remove();
} }
if (block.childrenIds.length === 0) {
return block.remove();
}
return true; return true;
} }
} }