🚑 Set lesson of substitution to 0 if column empty
This commit is contained in:
@ -89,7 +89,7 @@ export function parseSubstitutionPlan(html) {
|
||||
});
|
||||
|
||||
// Split change if it spans over multiple lessons
|
||||
const rawLesson = rowData.lesson;
|
||||
const rawLesson = rowData.lesson || "0";
|
||||
const fromToLessons = rawLesson.match(/\d+/g).map(Number);
|
||||
const from = fromToLessons[0];
|
||||
const to = fromToLessons[1] || fromToLessons[0];
|
||||
|
Reference in New Issue
Block a user