Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
Signed-off-by: harshada.lingayat <harshada_lingayat@persistent.com>
  • Loading branch information
harshada8989 committed Sep 27, 2022
1 parent bea0f01 commit 8d6c9c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
EuiPanel,
EuiSpacer,
EuiTitle,
htmlIdGenerator,
} from '@elastic/eui';
import { uniqueId } from 'lodash';
import React, { useContext, useEffect, useState } from 'react';
Expand Down Expand Up @@ -140,7 +141,7 @@ export const TreemapConfigPanelItem = ({
closeMenu={() => isHandlePanelClickBack(selectedAxis)}
/>
<EuiComboBox
id={uniqueId('axis-select-')}
id={htmlIdGenerator('axis-select-')}
placeholder="Select a field"
options={options}
selectedOptions={selectedAxis[index].label !== '' ? [selectedAxis[index]] : []}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ const getUserConfigs = (
childField: { ...(axesData.xaxis ? axesData.xaxis[0] : initialEntryTreemap) },
parentFields:
userSelectedConfigs?.dataConfig !== undefined &&
userSelectedConfigs?.dataConfig[GROUPBY].length > 0
userSelectedConfigs?.dataConfig[GROUPBY]?.length > 0
? [...userSelectedConfigs?.dataConfig[GROUPBY][0][PARENTFIELDS]]
: [],
},
Expand Down

0 comments on commit 8d6c9c3

Please sign in to comment.