From f6b918099a3149da550804560809bcdd52642238 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 --- public/components/custom_panels/helpers/utils.tsx | 5 +++++ 1 file changed, 5 insertions(+) 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 = {