From e4c6590dfb565e56859f26b5122686d40a82703b Mon Sep 17 00:00:00 2001 From: danielpeintner Date: Wed, 20 Sep 2023 11:11:36 +0200 Subject: [PATCH] refactor: missing one undefined change --- 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 e7d1c677f..d325b1279 100644 --- a/packages/td-tools/src/util/asset-interface-description.ts +++ b/packages/td-tools/src/util/asset-interface-description.ts @@ -246,7 +246,7 @@ export class AssetInterfaceDescriptionUtil { } private getContentTypeFromEndpointMetadata(endpointMetadata?: Record): string { - if (endpointMetadata?.value !== undefined && endpointMetadata.value instanceof Array) { + if (endpointMetadata?.value != null && endpointMetadata.value instanceof Array) { for (const v of endpointMetadata.value) { if (v.idShort === "contentType") { // e.g., "value": "application/octet-stream;byteSeq=BIG_ENDIAN"