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

(cherry picked from commit cd7bf38)
Signed-off-by: TackAdam <[email protected]>
(cherry picked from commit f6b9180)
  • Loading branch information
TackAdam authored and A9 Swift Project User committed Aug 10, 2023
1 parent 1f65265 commit de2a98c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions auto_sync_commit_metadata.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"last_github_commit": "a862bfc56564a051a2357de17c2d7a800bc5c9d7",
"last_gitfarm_commit": "3fa781b8089b407bbb537521120fd5a88fa472a4"
"last_github_commit": "f6b918099a3149da550804560809bcdd52642238",
"last_gitfarm_commit": "b6857c3b577d0826d45abc5c7badff846bff8275"
}
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 de2a98c

Please sign in to comment.