msyavuz commented on code in PR #36927:
URL: https://github.com/apache/superset/pull/36927#discussion_r2667605430


##########
superset-frontend/src/dashboard/components/nativeFilters/FilterBar/index.tsx:
##########
@@ -204,24 +204,38 @@ const FilterBar: FC<FiltersBarProps> = ({
       dataMask: Partial<DataMask>,
     ) => {
       setDataMaskSelected(draft => {
+        const existingDataMask = dataMaskSelectedRef.current[filter.id];
+        const appliedDataMask = dataMaskApplied[filter.id];
         const isFirstTimeInitialization =
           !initializedFilters.has(filter.id) &&
-          dataMaskSelectedRef.current[filter.id]?.filterState?.value ===
-            undefined;
+          existingDataMask?.filterState?.value === undefined;

Review Comment:
   This seems relevant?



-- 
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]

Reply via email to