fix: Pivot Table Conditional Formatting Doesn't Show All Options (#19071)

* fix: Pivot Table Conditional Formatting Doesn't Show All Options

* PR comments

* PR comments
This commit is contained in:
Diego Medina
2022-03-09 17:04:04 -05:00
committed by GitHub
parent 62ad574c24
commit 0e0beceac1
5 changed files with 42 additions and 9 deletions

View File

@@ -170,7 +170,10 @@ const config: ControlPanelConfig = {
configFormLayout: {
[GenericDataType.NUMERIC]: [[radarMetricMaxValue]],
},
mapStateToProps(explore, control, chart) {
shouldMapStateToProps() {
return true;
},
mapStateToProps(explore, _, chart) {
const values =
(explore?.controls?.metrics?.value as QueryFormMetric[]) ??
[];