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 21, 2023
1 parent 3d78e8e commit fecd6e4
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 @@ -229,7 +229,7 @@ export function serializeTD(thing: Thing): string {
copy.security = ["nosec_sc"];
}

if (copy?.forms.length === 0) {
if (copy.forms?.length === 0) {
delete copy.forms;
}

Expand Down

0 comments on commit fecd6e4

Please sign in to comment.