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 13:37:01 UTC
[GitHub] [superset] michael-s-molina commented on a change in pull request #18963: fix(native-filters): Default value not shown in native filters
michael-s-molina commented on a change in pull request #18963:
URL: https://github.com/apache/superset/pull/18963#discussion_r815894290
##########
File path: superset-frontend/src/dashboard/components/nativeFilters/FilterBar/index.tsx
##########
@@ -288,6 +288,10 @@ const FilterBar: React.FC<FiltersBarProps> = ({
}
}, [JSON.stringify(filters), JSON.stringify(previousFilters)]);
+ useEffect(() => {
+ setDataMaskSelected(() => dataMaskApplied);
+ }, [JSON.stringify(dataMaskApplied), setDataMaskSelected]);
Review comment:
Can you use `dataMaskAppliedText`? It's already converting the JSON to string.
--
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