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 f5b386b commit 49c7bc7
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 @@ -132,7 +132,7 @@ export class AssetInterfaceDescriptionUtil {
public transformTD2SM(tdAsString: string, protocols?: string[]): string {
const td: ThingDescription = TDParser.parseTD(tdAsString);

const aidID = td.id != null ? td.id : "ID" + Math.random();
const aidID = td.id ?? "ID" + Math.random();

logInfo("TD " + td.title + " parsed...");

Expand Down

0 comments on commit 49c7bc7

Please sign in to comment.