Skip to content

Commit 3f00edb

Browse files
committed
fix: handle optional chaining for UnitType in IfcPropertyProcessor
1 parent 4944607 commit 3f00edb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/fragments/src/Importers/IfcImporter/src/properties/property-processor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ export class IfcPropertyProcessor {
303303
unitHandle.value,
304304
);
305305

306-
const value = unit.UnitType.value;
306+
const value = unit.UnitType?.value;
307307
if (value !== "LENGTHUNIT") continue;
308308

309309
let factor = 1;

0 commit comments

Comments
 (0)