Skip to content
Snippets Groups Projects
Unverified Commit 074d382c authored by gabriellsh's avatar gabriellsh Committed by GitHub
Browse files

Regression: Clear user selection filter after selecting desired user. (#26295)

parent 67318f16
No related branches found
No related tags found
No related merge requests found
......@@ -54,6 +54,7 @@ const UserAutoCompleteMultipleFederated = ({
const options = data || [];
const onAddSelected: ComponentProps<typeof Options>['onSelect'] = ([value]) => {
setFilter('');
const cachedOption = options.find(([curVal]) => curVal === value)?.[1];
if (!cachedOption) {
throw new Error('UserAutoCompleteMultiple - onAddSelected - failed to cache option');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment