From f1db43f207f6c238fd90e64078de70ed1526e813 Mon Sep 17 00:00:00 2001 From: enlineawork Date: Thu, 10 Sep 2026 22:51:10 -0300 Subject: [PATCH] fix(api): root field inventory at frozen yacimiento --- .../inspection-visits/f3-field-inventory-structure.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api-v3/src/inspection-visits/f3-field-inventory-structure.service.ts b/api-v3/src/inspection-visits/f3-field-inventory-structure.service.ts index f1406bf..0f9779b 100644 --- a/api-v3/src/inspection-visits/f3-field-inventory-structure.service.ts +++ b/api-v3/src/inspection-visits/f3-field-inventory-structure.service.ts @@ -61,7 +61,7 @@ export class F3FieldInventoryStructureService { principal: AuthPrincipal, ) { const base = await this.fieldInventory.types(visitId, parentId, principal) as unknown as FieldTypesBase; - const effectiveParentId = parentId ?? base.context.area.id; + const effectiveParentId = parentId ?? base.parent.id; const parent = await this.parent(effectiveParentId); const expectedTypeCode = STRUCTURAL_CHILD[parent.typeCode.toLowerCase()]; const data = expectedTypeCode