-
Notifications
You must be signed in to change notification settings - Fork 64
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(THEEDGE-3757): add validation to imageset #2122
fix(THEEDGE-3757): add validation to imageset #2122
Conversation
/retest |
1 similar comment
/retest |
…-frontend into THEEDGE-3757-fix-scalprum-error
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #2122 +/- ##
==========================================
- Coverage 57.59% 57.47% -0.13%
==========================================
Files 193 193
Lines 6198 6198
Branches 1717 1717
==========================================
- Hits 3570 3562 -8
- Misses 2628 2636 +8 ☔ View full report in Codecov by Sentry. |
/retest |
@@ -187,7 +187,7 @@ const GroupImmutableSystems = ({ groupName, groupId, ...props }) => { | |||
|
|||
//enable disable bulk update based on selection, must refactor | |||
useEffect(() => { | |||
if (selected.size > 0) { | |||
if (selected.size > 0 && deviceImageSet?.size > 0) { |
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.
Shouldn't deviceImageSet
be added as a dependency to the useEffect's dependency array ? 🤔
The condition could change when it is changed, which would effect the Effect
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.
@LiorKGOW included the validation on useEffect but I kept the condition cause we should not get in this validation if there is no imageSet
…-frontend into THEEDGE-3757-fix-scalprum-error
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.
Unfortunately I can't reproduce the bug that was mentioned on the ticket
Could someone have a look ?
@RedHatInsights/team-interact
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.
Approved by mistake
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.
Works fine to me
Thank you @acosferreira
🎉 This PR is included in version 1.62.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Fix validation to avoid exception for navigate.
Check if deviceImageSet is filled before find the imae value