From: Laura Flores Date: Wed, 8 Sep 2021 16:59:37 +0000 (+0000) Subject: mgr/dashboard: specify array type for value X-Git-Tag: v17.1.0~818^2~6 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=4b93ecb571e8edb157ec0ea5029055166927134d;p=ceph-ci.git mgr/dashboard: specify array type for value Signed-off-by: Laura Flores --- diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/telemetry/telemetry.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/telemetry/telemetry.component.ts index bee61022e2a..5879dbd4471 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/telemetry/telemetry.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/telemetry/telemetry.component.ts @@ -89,7 +89,7 @@ export class TelemetryComponent extends CdForm implements OnInit { } private replacer(key: string, value: any) { - if (key === 'ranges' || key === 'values') { + if ((key === 'ranges' || key === 'values') && (Array.isArray(value))) { const x = []; for (let i = 0; i < value.length; i++) { x.push(JSON.stringify(value[i]));