geido commented on a change in pull request #18695:
URL: https://github.com/apache/superset/pull/18695#discussion_r806935506
##########
File path:
superset-frontend/src/dashboard/components/nativeFilters/FilterBar/index.tsx
##########
@@ -238,6 +238,9 @@ const FilterBar: React.FC<FiltersBarProps> = ({
const currentTargets = currentFilter.targets;
const currentDataMask = currentFilter.defaultDataMask;
const previousFilter = previousFilters?.[currentFilter.id];
+ if (!previousFilter) {
Review comment:
Since this is a pre-condition would you mind moving it at the top of the
loop just to make the code more readable. Thank you!
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]