diff --git a/src/app/pages/dashboard/temperature/temperature-dragger/temperature-dragger.component.ts b/src/app/pages/dashboard/temperature/temperature-dragger/temperature-dragger.component.ts index ebbf0ab1..a820ad30 100644 --- a/src/app/pages/dashboard/temperature/temperature-dragger/temperature-dragger.component.ts +++ b/src/app/pages/dashboard/temperature/temperature-dragger/temperature-dragger.component.ts @@ -11,6 +11,7 @@ import { } from '@angular/core'; import { Location, LocationStrategy } from '@angular/common'; +let uniqueId = 0; const VIEW_BOX_SIZE = 300; @Component({ @@ -63,7 +64,7 @@ export class TemperatureDraggerComponent implements AfterViewInit, OnChanges { off = false; oldValue: number; - svgControlId = new Date().getTime(); + svgControlId = uniqueId++; scaleFactor = 1; bottomAngleRad = 0; radius = 100;