[103] Alles wählen nimmt Dach- und Deckenfenster des Geschosses mit

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NTYBZBvLYCtugMJoKXaB67
This commit is contained in:
Claude committed 2026-11-04 15:04:11 +00:00
1 parent 4bd49d3b0c
commit cb0a196a0b
2 files changed
+5 -2

No files matched your search

+4 -1
View File
@@ -347,8 +347,11 @@ export function useSelectAllAndDeleteShortcut(opts: {
.map((c) => c.id);
// Öffnungen haben kein eigenes floorId (das Geschoss ergibt sich aus
// der Wirtswand) — über die bereits geschossgefilterten Wand-Ids.
// Dachfenster/Deckenöffnungen ([103]): über das Dach bzw. die Decke des Geschosses.
const roofIdSet = new Set((project.roofs ?? []).filter((r) => r.floorId === activeLevelId).map((r) => r.id));
const ceilingIdSet = new Set(ceilingIds);
const openingIds = (project.openings ?? [])
.filter((o) => wallIdSet.has(o.hostWallId))
.filter((o) => wallIdSet.has(o.hostWallId) || (!!o.hostRoofId && roofIdSet.has(o.hostRoofId)) || (!!o.hostCeilingId && ceilingIdSet.has(o.hostCeilingId)))
.map((o) => o.id);
const stairIds = (project.stairs ?? [])
.filter((s) => s.floorId === activeLevelId)