From eb10a4cc64b835fec4ac991a2fa8b5761a09fe42 Mon Sep 17 00:00:00 2001 From: Made Baruna Date: Sat, 4 Jun 2022 01:53:19 +0700 Subject: [PATCH] Add excel import beginner wish missing apostrophe --- src/routes/wish/_excelImport.svelte | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/routes/wish/_excelImport.svelte b/src/routes/wish/_excelImport.svelte index bacc4537..642bd197 100644 --- a/src/routes/wish/_excelImport.svelte +++ b/src/routes/wish/_excelImport.svelte @@ -199,7 +199,11 @@ const chars = Object.values(characters); for (const [id, category] of Object.entries(bannerCategories)) { - const sheet = workbook.getWorksheet(category); + let sheet = workbook.getWorksheet(category); + if (id === 'beginners' && sheet === undefined) { + sheet = workbook.getWorksheet('Beginners Wish'); + } + const wishes = []; sheet.eachRow((row, index) => { if (index === 1) return;