We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 733cf88 commit 61b88b9Copy full SHA for 61b88b9
frontend/src/components/activity/ScheduleEntry.vue
@@ -480,9 +480,16 @@ export default {
480
})
481
},
482
async reloadAllScheduleEntriesInRelatedPeriods() {
483
+ const periods = [
484
+ ...new Set(
485
+ this.activity.scheduleEntries().items.map((scheduleEntry) => {
486
+ return scheduleEntry.period()
487
+ })
488
+ ),
489
+ ]
490
await Promise.all(
- this.activity.scheduleEntries().items.map((scheduleEntry) => {
- return scheduleEntry.period().scheduleEntries().$reload()
491
+ periods.map(async (period) => {
492
+ period.scheduleEntries().$reload()
493
494
)
495
this.loadScheduleEntry()
0 commit comments