fix measure points

This commit is contained in:
=
2021-02-25 18:08:48 +01:00
parent 1ee0d5add8
commit 7c999c712b
@@ -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);