-
Notifications
You must be signed in to change notification settings - Fork 365
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: [M3-8164] - regions length check #10519
fix: [M3-8164] - regions length check #10519
Conversation
Coverage Report: β
|
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.
Length check prevents the crash β
@@ -28,7 +28,7 @@ export const HostNameTableCell = ({ | |||
|
|||
const { regions } = storageKeyData; | |||
|
|||
if (!regionsLookup || !regionsData || !regions) { | |||
if (!regionsLookup || !regionsData || !regions.length) { |
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.
Our length checks are normally more explicit, i.e., regions.length === 0
.
Did UX share any ideas other than an empty cell for these cases? Maybe "None" or "N/A"?
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.
++ for the explicit length check (regions.length === 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.
Good call @dwiley-akamai None
makes sense to me. Looks like we are using it in VPC as well. However, I will confirm with UX and get back on this.
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.
UX is confirmed on showing 'None'.
Description π
This PR checks the length of regions before reading its data while rending Table cell in Access Key table.
Target release date ποΈ
6/7
How to test π§ͺ
Prerequisites
(How to setup test environment)
Reproduction steps
(How to reproduce the issue, if applicable)
Verification steps
(How to verify changes)
As an Author I have considered π€
Check all that apply