diff --git a/libs/ui/src/lib/value/value.component.ts b/libs/ui/src/lib/value/value.component.ts index ab5f6e4cc0..c2c7d4621d 100644 --- a/libs/ui/src/lib/value/value.component.ts +++ b/libs/ui/src/lib/value/value.component.ts @@ -221,12 +221,12 @@ export class GfValueComponent implements AfterViewInit, OnChanges, OnDestroy { this.isString = false; this.useAbsoluteValue = false; - if (this.locale === undefined || this.locale === '') { - this.locale = getLocale(); - } - if (this.copyToClipboardTimeout) { clearTimeout(this.copyToClipboardTimeout); } + + if (this.locale === undefined || this.locale === '') { + this.locale = getLocale(); + } } }