-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Show version name while deleting #4589
Show version name while deleting #4589
Conversation
deployed https://tj-4589.herokuapp.com/ |
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.
@FroostyCodes Thanks for the PR.
Instead of looping and finding the name of the version, we can maintain it in the state. We already have a deletingVersionId
state which can be changed to deletingVersion
and maintain both { id: version.id, name: version.name }
in the state. This avoids an unnecessary loop to find the name of the version.
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.
LGTM
Hey @FroostyCodes |
Fixes #4575