mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-19 04:01:47 +03:00
fix(group): delete group when there's no children
This commit is contained in:
parent
f381de0d8b
commit
56cdcf8622
@ -36,6 +36,9 @@ export class GridBlock extends BaseView {
|
||||
}
|
||||
return block.remove();
|
||||
}
|
||||
if (block.childrenIds.length === 0) {
|
||||
return block.remove();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user