Skip to content

Commit

Permalink
Update packages/td-tools/src/util/asset-interface-description.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Cristiano Aguzzi <[email protected]>
  • Loading branch information
danielpeintner and relu91 authored Sep 21, 2023
1 parent f10a4a0 commit dcb16c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/td-tools/src/util/asset-interface-description.ts
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ export class AssetInterfaceDescriptionUtil {

private processSubmodelElement(smInformation: SubmodelInformation, submodelElement: Record<string, unknown>): 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<string, unknown> = {};
for (const smValue of submodelElement.value) {
Expand Down

0 comments on commit dcb16c3

Please sign in to comment.