Add assigment of crew to events and shifts
This commit is contained in:
parent
0aff9cc94a
commit
cef6b13dd1
7 changed files with 153 additions and 3 deletions
|
@ -29,6 +29,14 @@ export function canSeeCrew(accountType: string | undefined) {
|
|||
export function filterSchedule(schedule: Schedule): Schedule {
|
||||
return {
|
||||
locations: schedule.locations,
|
||||
events: schedule.events.filter(event => !event.crew),
|
||||
events: schedule.events
|
||||
.filter(event => !event.crew)
|
||||
.map(event => ({
|
||||
...event,
|
||||
slots: event.slots.map(slot => ({
|
||||
...slot,
|
||||
assigned: undefined,
|
||||
}),
|
||||
}),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue