diff --git a/web-common/src/features/visual-metrics-editing/lib.ts b/web-common/src/features/visual-metrics-editing/lib.ts index 3884462d64b..00f2ddf5ecb 100644 --- a/web-common/src/features/visual-metrics-editing/lib.ts +++ b/web-common/src/features/visual-metrics-editing/lib.ts @@ -67,10 +67,7 @@ export class YAMLMeasure { this.name = item?.get("name") ?? ""; this.display_name = item?.get("display_name") ?? item?.get("label") ?? ""; this.description = item?.get("description") ?? ""; - this.valid_percent_of_total = - item?.get("valid_percent_of_total") === undefined - ? true - : Boolean(item?.get("valid_percent_of_total")); + this.valid_percent_of_total = Boolean(item?.get("valid_percent_of_total")); this.format_d3 = item?.get("format_d3") ?? ""; this.format_preset = (item?.get("format_preset") as unknown as FormatPreset) ??