Add excel import beginner wish missing apostrophe

This commit is contained in:
Made Baruna 2022-06-04 01:53:19 +07:00
parent 999584058e
commit eb10a4cc64

View file

@ -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;