suddjian commented on a change in pull request #12252:
URL: https://github.com/apache/superset/pull/12252#discussion_r556098302
##########
File path: superset-frontend/src/dashboard/containers/FiltersBadge.tsx
##########
@@ -38,16 +39,29 @@ const mapDispatchToProps = (dispatch: Dispatch) =>
);
const mapStateToProps = (
- { datasources, dashboardFilters, charts }: any,
+ { datasources, dashboardFilters, nativeFilters, charts }: any,
{ chartId }: FiltersBadgeProps,
) => {
- const indicators = selectIndicatorsForChart(
+ const dashboardIndicators = selectIndicatorsForChart(
chartId,
dashboardFilters,
datasources,
charts,
);
+ const nativeIndicators = selectNativeIndicatorsForChart(nativeFilters);
+
+ const indicators = nativeIndicators.reduce((acc, indicator) => {
Review comment:
On second thought, you'd probably have to use `uniqWith`, not `uniqBy`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]