From de2a98c357af7f8bd8193583587e4da94e65f9e8 Mon Sep 17 00:00:00 2001 From: Adam Tackett <105462877+TackAdam@users.noreply.github.com> Date: Tue, 11 Jul 2023 10:59:07 -0700 Subject: [PATCH] Merge pull request #607 from TackAdam/PanelAvailBug [BugFix] Application Analytics - Panels not displaying availability (cherry picked from commit cd7bf381e65101c873588fdd6e65f185a6e2d295) Signed-off-by: TackAdam (cherry picked from commit f6b918099a3149da550804560809bcdd52642238) --- auto_sync_commit_metadata.json | 4 ++-- public/components/custom_panels/helpers/utils.tsx | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/auto_sync_commit_metadata.json b/auto_sync_commit_metadata.json index 9f1a7e96ea..bab3eae480 100644 --- a/auto_sync_commit_metadata.json +++ b/auto_sync_commit_metadata.json @@ -1,4 +1,4 @@ { - "last_github_commit": "a862bfc56564a051a2357de17c2d7a800bc5c9d7", - "last_gitfarm_commit": "3fa781b8089b407bbb537521120fd5a88fa472a4" + "last_github_commit": "f6b918099a3149da550804560809bcdd52642238", + "last_gitfarm_commit": "b6857c3b577d0826d45abc5c7badff846bff8275" } \ No newline at end of file diff --git a/public/components/custom_panels/helpers/utils.tsx b/public/components/custom_panels/helpers/utils.tsx index d2ca2a1be5..195bff570c 100644 --- a/public/components/custom_panels/helpers/utils.tsx +++ b/public/components/custom_panels/helpers/utils.tsx @@ -469,6 +469,11 @@ export const displayVisualization = (metaData: any, data: any, type: string) => if (metaData === undefined || _.isEmpty(metaData)) { return <>; } + + if (metaData.user_configs !== undefined && metaData.user_configs !== '') { + metaData.user_configs = JSON.parse(metaData.user_configs); + } + const dataConfig = { ...(metaData.user_configs?.dataConfig || {}) }; const hasBreakdowns = !_.isEmpty(dataConfig.breakdowns); const realTimeParsedStats = {