You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by mi...@apache.org on 2025/04/01 12:41:22 UTC
(superset) 04/09: fix(table-chart): Do not show comparison columns config if time_compare is set to [] (#32863)
This is an automated email from the ASF dual-hosted git repository.
michaelsmolina pushed a commit to branch 5.0
in repository https://gitbox.apache.org/repos/asf/superset.git
commit 4362d04a91928f36865cffa0609d09685428a389
Author: Vitor Avila <96...@users.noreply.github.com>
AuthorDate: Wed Mar 26 13:28:22 2025 -0300
fix(table-chart): Do not show comparison columns config if time_compare is set to [] (#32863)
(cherry picked from commit f0dc1e7527b3d13888c7bb4833da56c12c6aaa3c)
---
superset-frontend/plugins/plugin-chart-table/src/controlPanel.tsx | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/superset-frontend/plugins/plugin-chart-table/src/controlPanel.tsx b/superset-frontend/plugins/plugin-chart-table/src/controlPanel.tsx
index 933ee6a0c1..ef3a8e700c 100644
--- a/superset-frontend/plugins/plugin-chart-table/src/controlPanel.tsx
+++ b/superset-frontend/plugins/plugin-chart-table/src/controlPanel.tsx
@@ -486,8 +486,9 @@ const config: ControlPanelConfig = {
return true;
},
mapStateToProps(explore, _, chart) {
- const timeComparisonStatus =
- !!explore?.controls?.time_compare?.value;
+ const timeComparisonStatus = !isEmpty(
+ explore?.controls?.time_compare?.value,
+ );
const { colnames: _colnames, coltypes: _coltypes } =
chart?.queriesResponse?.[0] ?? {};