Merge branch 'Danh4-issue-998'

This commit is contained in:
n1474335 committed 2020-03-30 11:17:38 +01:00
commit ac2fcee90f
1 file changed
+1 -1
+1 -1
View File
@@ -17,7 +17,7 @@ class DishJSON extends DishType {
*/ */
static toArrayBuffer() { static toArrayBuffer() {
DishJSON.checkForValue(this.value); 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;
} }
/** /**