no need to abstract a push

This commit is contained in:
Julien Calixte
2023-07-30 15:59:53 +02:00
parent 07e65adff6
commit e6c1032f55

View File

@@ -62,9 +62,6 @@ export const useSimulationStore = defineStore('dashboard', {
}
},
actions: {
newDashboard(dashboard: Dashboard) {
this.dashboards.push(dashboard)
},
async simulate(strategy: Strategy) {
const steps = featureSteps
const backlog = await instance.newBacklog()
@@ -98,7 +95,7 @@ export const useSimulationStore = defineStore('dashboard', {
}
}
this.newDashboard(dashboard)
this.dashboards.push(dashboard)
this.mean[strategy].leadTimeSum += dashboard.analysis.meanLeadTime
this.mean[strategy].taktTimeSum +=
dashboard.meta.totalDays / newState.features.length