coordination and design docs not listed under install

This commit is contained in:
Daniel Roth 2026-05-19 10:30:59 +00:00
parent f99374a16f
commit d292bb53c1

View file

@ -16,7 +16,12 @@ export function splitDocumentsByType(docs: PropertyDocument[]): {
docs: docs.filter((d) => SURVEY_ALL_DOC_TYPES.has(d.docType)),
coordinationDocs: docs.filter((d) => COORDINATION_DOC_TYPES.has(d.docType)),
designDocs: docs.filter((d) => DESIGN_DOC_TYPES.has(d.docType)),
installDocs: docs.filter((d) => !SURVEY_ALL_DOC_TYPES.has(d.docType)),
installDocs: docs.filter(
(d) =>
!SURVEY_ALL_DOC_TYPES.has(d.docType) &&
!COORDINATION_DOC_TYPES.has(d.docType) &&
!DESIGN_DOC_TYPES.has(d.docType),
),
};
}