mirror of
https://github.com/apache/superset.git
synced 2026-04-18 07:35:09 +00:00
fix(table-chart): Do not show comparison columns config if time_compare is set to [] (#32863)
This commit is contained in:
@@ -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] ?? {};
|
||||
|
||||
Reference in New Issue
Block a user