Skip to content

Commit

Permalink
[SDBELGA-769] fix: Unable to save event series with no planning items
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkLark86 committed Feb 19, 2024
1 parent a6c2810 commit e011d73
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function getRecurringPlanningToUpdate(
updates: Partial<IEventItem>,
plannings: {[planningId: string]: IPlanningItem}
): Array<IPlanningItem['_id']> {
const originalCoverages: IPlanningEmbeddedCoverageMap = original.planning_ids
const originalCoverages: IPlanningEmbeddedCoverageMap = (original.planning_ids || [])
.map((planningId) => plannings[planningId])
.reduce((planningItems, planningItem) => {
planningItems[planningItem._id] = (planningItem.coverages ?? []).reduce(
Expand Down

0 comments on commit e011d73

Please sign in to comment.