From bf70589b3cfe79b7210a42b7291020203dc14f5b Mon Sep 17 00:00:00 2001 From: n1073645 Date: Fri, 20 Dec 2019 15:23:30 +0000 Subject: [PATCH] Tidy up --- src/core/dishTypes/DishListFile.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/dishTypes/DishListFile.mjs b/src/core/dishTypes/DishListFile.mjs index 3bca6133..58d1bc39 100644 --- a/src/core/dishTypes/DishListFile.mjs +++ b/src/core/dishTypes/DishListFile.mjs @@ -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; } /**