1
0
mirror of synced 2024-11-24 15:00:17 +01:00

Issue 998: DishJSON should only replace undefined with new ArrayBuffer not null or false

This commit is contained in:
71819 2020-03-28 20:27:59 +00:00
parent 29255d2338
commit 94e00115fe

View File

@ -17,7 +17,7 @@ class DishJSON extends DishType {
*/
static toArrayBuffer() {
DishJSON.checkForValue(this.value);
this.value = this.value ? Utils.strToArrayBuffer(JSON.stringify(this.value, null, 4)) : new ArrayBuffer;
this.value = this.value !== undefined ? Utils.strToArrayBuffer(JSON.stringify(this.value, null, 4)) : new ArrayBuffer;
}
/**