Skip to content

Commit

Permalink
Merge pull request opensearch-project#607 from TackAdam/PanelAvailBug
Browse files Browse the repository at this point in the history
[BugFix] Application Analytics - Panels not displaying availability
  • Loading branch information
TackAdam authored Jul 11, 2023
2 parents fba6d30 + 7c80ce1 commit cd7bf38
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions public/components/custom_panels/helpers/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,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 = {
Expand Down

0 comments on commit cd7bf38

Please sign in to comment.