You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2020/03/27 06:51:31 UTC

[GitHub] [incubator-superset] graceguo-supercat commented on a change in pull request #9401: [fix] dashboard filter indicator no showing single number value

graceguo-supercat commented on a change in pull request #9401: [fix] dashboard filter indicator no showing single number value
URL: https://github.com/apache/incubator-superset/pull/9401#discussion_r399065300
 
 

 ##########
 File path: superset-frontend/src/dashboard/components/FilterIndicatorsContainer.jsx
 ##########
 @@ -101,6 +101,15 @@ export default class FilterIndicatorsContainer extends React.PureComponent {
                 chartId,
                 column: name,
               });
+
+              // filter values could be single value or array of values
+              const values =
+                isNil(columns[name]) ||
+                (isDateFilter && columns[name] === 'No filter') ||
+                (Array.isArray(columns[name]) && columns[name].length === 0)
 
 Review comment:
   isEmpty(number) will return true, this caused indicator didn't show the selected filter value.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org