Reorganise the views and prepare summary
All checks were successful
Build and Deploy / build-and-push (push) Successful in 23s
All checks were successful
Build and Deploy / build-and-push (push) Successful in 23s
This commit is contained in:
@@ -47,6 +47,13 @@ export function normalizeDayPlan(day) {
|
||||
const arr = normalizeSlotValue(day[s.id]);
|
||||
if (arr.length > 0) out[s.id] = arr;
|
||||
});
|
||||
if (day._skipped && typeof day._skipped === 'object') {
|
||||
const sk = {};
|
||||
for (const k of Object.keys(day._skipped)) {
|
||||
if (day._skipped[k] === true) sk[k] = true;
|
||||
}
|
||||
if (Object.keys(sk).length > 0) out._skipped = sk;
|
||||
}
|
||||
return out;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user