Skip to content

Commit

Permalink
fix: enable changing resolution and aggregation of unmodeled data str…
Browse files Browse the repository at this point in the history
…eams
  • Loading branch information
tracy-french committed Sep 29, 2023
1 parent 1c406b6 commit e187898
Showing 1 changed file with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,13 @@ const AggregationSettings: FC<AggregationSettingsProps> = ({ queryConfig, update
})),
}));

updateQuery({ assets });
const properties = siteWiseAssetQuery.properties?.map((property) => ({
...property,
resolution: detail.selectedOption.value,
aggregationType: newAggregation as AggregateType,
}));

updateQuery({ assets, properties });
};

const onUpdateAggregation: SelectProps['onChange'] = ({ detail }) => {
Expand All @@ -124,7 +130,13 @@ const AggregationSettings: FC<AggregationSettingsProps> = ({ queryConfig, update
})),
}));

updateQuery({ assets });
const properties = siteWiseAssetQuery.properties?.map((property) => ({
...property,
resolution: newResolution,
aggregationType: newAggregation,
}));

updateQuery({ assets, properties });
};

return (
Expand Down

0 comments on commit e187898

Please sign in to comment.