villebro commented on a change in pull request #14788:
URL: https://github.com/apache/superset/pull/14788#discussion_r638565471
##########
File path:
superset-frontend/src/filters/components/Select/SelectFilterPlugin.tsx
##########
@@ -100,29 +99,36 @@ export default function PluginFilterSelect(props:
PluginFilterSelectProps) {
defaultToFirstItem,
searchAllOptions,
} = formData;
+ const groupby = ensureIsArray<string>(formData.groupby);
+ const [col] = groupby;
+ const [currentSuggestionSearch, setCurrentSuggestionSearch] = useState('');
+ const [dataMask, dispatchDataMask] = useReducer<DataMaskReducer>(reducer, {
+ filterState,
+ ownState: {
+ coltypeMap,
+ },
+ });
Review comment:
This was moved changed to always initialize `ownState` to make sure the
column type mappings are available if the `searchAllOptions` option is enabled
after mounting.
--
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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]