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 2022/02/28 16:30:10 UTC
[GitHub] [superset] kgabryje commented on a change in pull request #18967: chore(native-filters): Add unit tests for filter cards
kgabryje commented on a change in pull request #18967:
URL: https://github.com/apache/superset/pull/18967#discussion_r816052271
##########
File path: superset-frontend/src/dashboard/components/nativeFilters/FilterCard/ScopeRow.tsx
##########
@@ -47,17 +47,16 @@ export const ScopeRow = React.memo(({ filter }: FilterCardRowProps) => {
[elementsTruncated, scope],
);
- if (!Array.isArray(scope) || scope.length === 0) {
- return null;
- }
return (
<Row>
<RowLabel>{t('Scope')}</RowLabel>
<TooltipWithTruncation title={tooltipText}>
<RowValue ref={scopeRef}>
- {scope.map((element, index) => (
- <span>{index === 0 ? element : `, ${element}`}</span>
- ))}
+ {scope
Review comment:
This change was added in https://github.com/apache/superset/pull/18793 (in review), copying it here in order to write a test for it before #18793 is merged
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org