This commit is contained in:
n1073645 2019-12-20 15:23:30 +00:00
parent 78d1114869
commit bf70589b3c
1 changed files with 2 additions and 1 deletions

View File

@ -22,8 +22,9 @@ class DishListFile extends DishType {
if (isNodeEnvironment()) {
this.value = this.value.map(file => Uint8Array.from(file.data));
} else {
this.value = await DishListFile.concatenateTypedArraysWithTypedElements(...this.value);
}
this.value = (this.type === Dish.LIST_FILE ? await DishListFile.concatenateTypedArraysWithTypedElements(...this.value) : await DishListFile.concatenateTypedArrays(...this.value)).buffer;
}
/**