-
Notifications
You must be signed in to change notification settings - Fork 267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Preserve selected userstore context in user create wizard #7689
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #7689 +/- ##
=======================================
Coverage 41.85% 41.85%
=======================================
Files 42 42
Lines 939 939
Branches 230 217 -13
=======================================
Hits 393 393
- Misses 502 546 +44
+ Partials 44 0 -44
Flags with carried forward coverage won't be shown. Click here to find out more. |
if (selectedUserStore) { | ||
userStoresList?.find((store: UserStoreListItem) => { | ||
if (store.name === selectedUserStore) { | ||
selectedUserstoreId = store.id; | ||
} | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like an incorrect use of find
here.
const selected = userStoresList?.find((store: UserStoreListItem) => store.name === selectedUserStore);
selectedUserstoreId = selected.id;
Purpose
$subject
Related Issues
Related PRs
Checklist
Security checks