mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-07-27 22:45:03 +00:00
fix incorrect merge conflict resolution
This commit is contained in:
parent
f6acce9f63
commit
0ca52d56d9
1 changed files with 6 additions and 6 deletions
|
|
@ -123,12 +123,12 @@ export function computeDocStatusMap(
|
|||
|
||||
for (const [dealId, docs] of docsByDealId) {
|
||||
const surveyDocs = docs.filter((d) => SURVEY_ALL_DOC_TYPES.has(d.fileType));
|
||||
// Design documents are their own category — they are neither survey nor
|
||||
// install docs. Without this carve-out a Retrofit Design Document (absent
|
||||
// from the survey set) would be mis-bucketed as an install document.
|
||||
const installDocs = docs.filter(
|
||||
(d) => !SURVEY_ALL_DOC_TYPES.has(d.fileType) && !DESIGN_DOC_TYPES.has(d.fileType),
|
||||
);
|
||||
// Survey, coordination and design docs each get their own drawer section,
|
||||
// so none count as install docs. `isInstallDocType` is the shared predicate
|
||||
// that keeps this in sync with the drawer's own split — re-implementing it
|
||||
// inline once dropped the coordination carve-out and mis-bucketed
|
||||
// coordination-only docs as install documents.
|
||||
const installDocs = docs.filter((d) => isInstallDocType(d.fileType));
|
||||
const surveyTypeSet = new Set(surveyDocs.map((d) => d.fileType));
|
||||
|
||||
const measures = measuresByDealId.get(dealId) ?? [];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue