Skip to content

Commit

Permalink
Merge pull request #628 from TackAdam/backport/backport-607-to-2.x
Browse files Browse the repository at this point in the history
[Backport 2.x ] Merge pull request  #607
  • Loading branch information
TackAdam authored Jul 11, 2023
2 parents da7c767 + f6b9180 commit bdc4701
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 @@ -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 = {
Expand Down

0 comments on commit bdc4701

Please sign in to comment.