diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/dashboard/dashboard.ts b/Thermo.Active/wwwroot/src/app_modules_thermo/dashboard/dashboard.ts index d1ccdbeb..3f806d21 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/dashboard/dashboard.ts +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/dashboard/dashboard.ts @@ -36,7 +36,8 @@ export default class Dashboard extends Vue { @Watch("lastItem", { deep: true }) async lastitemChanged(n: Prod.IProd, o) { - this.items.splice(0, 0, ...await prodService.History(n.numDone - 1, 1)); + if (this.items.length && n.numDone - 1 != this.items[0].numDone) + this.items.splice(0, 0, ...await prodService.History(n.numDone - 1, 1)); } items: Prod.IProd[] = []; diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt.vue b/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt.vue index a036fd90..d1221d7f 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt.vue +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/processo/components/gantt/gantt.vue @@ -50,7 +50,7 @@