feat: do not delete frame children on frame delete (#9011)

This commit is contained in:
David Luzar 2025-01-14 21:08:25 +01:00 committed by GitHub
parent 46f42ef8d7
commit ae6bee3403
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 103 additions and 40 deletions

View file

@ -105,6 +105,10 @@ export const selectGroupsForSelectedElements = (function () {
const groupElementsIndex: Record<GroupId, string[]> = {};
const selectedElementIdsInGroups = elements.reduce(
(acc: Record<string, true>, element) => {
if (element.isDeleted) {
return acc;
}
const groupId = element.groupIds.find((id) => selectedGroupIds[id]);
if (groupId) {