From dcb16c33d1d6fcc066c766621891d382a7df73e4 Mon Sep 17 00:00:00 2001 From: danielpeintner Date: Thu, 21 Sep 2023 10:43:41 +0200 Subject: [PATCH] Update packages/td-tools/src/util/asset-interface-description.ts Co-authored-by: Cristiano Aguzzi --- packages/td-tools/src/util/asset-interface-description.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/td-tools/src/util/asset-interface-description.ts b/packages/td-tools/src/util/asset-interface-description.ts index aa8de371f..ea931cd74 100644 --- a/packages/td-tools/src/util/asset-interface-description.ts +++ b/packages/td-tools/src/util/asset-interface-description.ts @@ -425,7 +425,7 @@ export class AssetInterfaceDescriptionUtil { private processSubmodelElement(smInformation: SubmodelInformation, submodelElement: Record): void { // EndpointMetadata vs. InterfaceMetadata - if (submodelElement.value != null && submodelElement.value instanceof Array) { + if (submodelElement.value instanceof Array) { // Note: iterate twice over to collect first EndpointMetadata let endpointMetadata: Record = {}; for (const smValue of submodelElement.value) {