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 0a85399 commit 3e65aa0
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 @@ -298,7 +298,7 @@ export class AssetInterfaceDescriptionUtil {
if (endpointMetadata?.value instanceof Array) {
for (const v of endpointMetadata.value) {
if (v.idShort === "security") {
if (v.value != null && v.value instanceof Array) {
if (v.value instanceof Array) {
for (const securityValue of v.value) {
if (securityValue.value != null) {
security.push(securityValue.value);
Expand Down

0 comments on commit 3e65aa0

Please sign in to comment.