Skip to content

Commit

Permalink
Update packages/td-tools/src/td-parser.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Jan Romann <[email protected]>
  • Loading branch information
danielpeintner and JKRhb authored Sep 12, 2023
1 parent f7be620 commit c574913
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/td-tools/src/td-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ export function serializeTD(thing: Thing): string {
delete copy.events;
}

if (copy.links !== undefined && copy.links.length === 0) {
if (copy?.links.length === 0) {
delete copy.links;
}

Expand Down

0 comments on commit c574913

Please sign in to comment.