diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/riscaldi/components/base-components/thermoProphet-modal.ts b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/riscaldi/components/base-components/thermoProphet-modal.ts index 1be49a38..2afc61ab 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/riscaldi/components/base-components/thermoProphet-modal.ts +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/riscaldi/components/base-components/thermoProphet-modal.ts @@ -60,11 +60,11 @@ export default class ThermoModal extends Vue { await warmersService.SetMeasurePoints(x, y); this.measurePoints.push({ x, y, temperature: 0 }) - this.reloadMeasuresDelayed(); + this.reloadMeasuresDelayed(this.images[this.selectedImage]); } @Watch("selectedImage") - reloadMeasuresDelayed = debounce(async () => this.measurePoints = await warmersService.GetMeasurePoints(this.images[this.selectedImage]), 500); + reloadMeasuresDelayed = debounce(async (image) => this.measurePoints = await warmersService.GetMeasurePoints(image), 500);