mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix(group): delete group when there's no children
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user