-
Notifications
You must be signed in to change notification settings - Fork 50
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
fix: add modules shouldn't reset after some time #3598
Conversation
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.
View is not jumping, and also delete modal is not jumping, so looks good, but selectedModules
or newModules
state is not working correctly, when I select some of the modules, click Cancel
-> Discard
and open Add Modules
one more time, then Modules are still selected (no of the module should be selected on first open of the Add
)
Screen.Recording.2025-01-21.at.13.45.48.mov
if (selectedModules && kymaResource) { | ||
const mergedModules = activeKymaModules.concat( | ||
selectedModules.filter( | ||
i => !activeKymaModules.find(j => j.name === i.name), |
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.
rename this i
and j
to something more readable
Looks that it's working in the Add Modules
view, delete is still jumping, but we will revisit that after refactor.
Description
Changes proposed in this pull request:
selectedModules
state correctlyRelated issue(s)
#3591
Definition of done
backlog#4567