From 7c999c712b1e032a5a42d33de55633fffdbbe7ef Mon Sep 17 00:00:00 2001 From: = Date: Thu, 25 Feb 2021 18:08:48 +0100 Subject: [PATCH] fix measure points --- .../components/base-components/thermoProphet-modal.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);