Skip to content

Commit

Permalink
updated the metrics fields
Browse files Browse the repository at this point in the history
Signed-off-by: SivaprasadAluri <[email protected]>
  • Loading branch information
SivaprasadAluri committed Oct 3, 2022
1 parent 147328c commit fce9f1a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,13 @@ export const ExplorerVisualizations = ({
queryManager,
}: IExplorerVisualizationsProps) => {
const { vis } = visualizations;
const fields = visualizations.data.rawVizData?.metadata?.fields;
const fieldOptionList = explorerFields.availableFields.map((field) => ({
...field,
label: field.name,
}));

const metricFieldOptionList = fields.map((field) => {
const metricFieldOptionList = fields?.map((field) => {
return { ...field, label: field.name };
});

Expand All @@ -87,7 +88,6 @@ export const ExplorerVisualizations = ({
<MetricConfigPanelItem
fieldOptionList={metricFieldOptionList}
visualizations={visualizations}
tabID={tabId}
/>
);
default:
Expand Down

0 comments on commit fce9f1a

Please sign in to comment.