Skip to content

Commit

Permalink
Changes of condition for userconfigs
Browse files Browse the repository at this point in the history
Signed-off-by: ruchika-narang <[email protected]>
  • Loading branch information
ruchika-narang committed Sep 13, 2022
1 parent 3c21881 commit 4c38cda
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,7 @@ const getUserConfigs = (
) => {
let configOfUser = userSelectedConfigs;
const axesData = getDefaultXYAxisLabels(vizFields, visName);
if (
!(
userSelectedConfigs.dataConfig?.dimensions?.length > 0 ||
userSelectedConfigs.dataConfig?.metrics?.length > 0
)
) {
if (!(userSelectedConfigs.dataConfig?.dimensions || userSelectedConfigs.dataConfig?.metrics)) {
switch (visName) {
case visChartTypes.HeatMap:
configOfUser = {
Expand Down

0 comments on commit 4c38cda

Please sign in to comment.