Skip to content

Commit 9efb303

Browse files
committed
Improve JSON serialization
1 parent 6c7fa26 commit 9efb303

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/src/messaging.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ export class Result {
191191
latex: this.latex,
192192
json: this.json,
193193
javascript: this.javascript,
194-
extra: this.extra
194+
...(Object.keys(this.extra).length > 0 ? { extra: this.extra } : {})
195195
}
196196
}
197197
}

0 commit comments

Comments
 (0)