allow x as boolean true from sheet

This commit is contained in:
arc-alex
2023-12-22 14:17:36 +01:00
parent fda1dbdd5f
commit be92fa43fa
+2 -2
View File
@@ -277,9 +277,9 @@ export const parseExcel = (excelData: unknown[][], options?: Partial<ExcelImport
} else if (j === subtitleIndex) {
event.subtitle = makeString(column, '');
} else if (j === isPublicIndex) {
event.isPublic = coerceBoolean(column);
event.isPublic = column == 'x' ? true : coerceBoolean(column);
} else if (j === skipIndex) {
event.skip = coerceBoolean(column);
event.skip = column == 'x' ? true : coerceBoolean(column);
} else if (j === notesIndex) {
event.note = makeString(column, '');
} else if (j === endActionIndex) {