diff --git a/lib/modules/shared/services/DigitalTwinExporter.ts b/lib/modules/shared/services/DigitalTwinExporter.ts index a1df2e3c..0713c60c 100644 --- a/lib/modules/shared/services/DigitalTwinExporter.ts +++ b/lib/modules/shared/services/DigitalTwinExporter.ts @@ -10,7 +10,7 @@ import { flattenObject, } from "../"; import { NamedMeasures } from "../../decoder"; -import { MeasureContent } from "../../measure"; +import { MeasureContent, MeasureOriginDevice } from "../../measure"; import { AskModelMeasureGet, AssetModelContent, @@ -193,7 +193,7 @@ export class DigitalTwinExporter extends AbstractExporter { const measureName = type === "asset" ? measure.asset.measureName - : measure.origin.measureName; + : (measure.origin as MeasureOriginDevice).measureName; const embeddedMeasure: EmbeddedMeasure = { measuredAt: measure.measuredAt,