diff --git a/packages/manager/.changeset/pr-10519-upcoming-features-1716918242639.md b/packages/manager/.changeset/pr-10519-upcoming-features-1716918242639.md new file mode 100644 index 00000000000..578cd372ff5 --- /dev/null +++ b/packages/manager/.changeset/pr-10519-upcoming-features-1716918242639.md @@ -0,0 +1,5 @@ +--- +"@linode/manager": Upcoming Features +--- + +fix regions length check in HostNameTableCell ([#10519](https://github.com/linode/manager/pull/10519)) diff --git a/packages/manager/src/features/ObjectStorage/AccessKeyLanding/AccessKeyTable/HostNameTableCell.tsx b/packages/manager/src/features/ObjectStorage/AccessKeyLanding/AccessKeyTable/HostNameTableCell.tsx index 4b156face0c..f9960f25f7a 100644 --- a/packages/manager/src/features/ObjectStorage/AccessKeyLanding/AccessKeyTable/HostNameTableCell.tsx +++ b/packages/manager/src/features/ObjectStorage/AccessKeyLanding/AccessKeyTable/HostNameTableCell.tsx @@ -28,8 +28,8 @@ export const HostNameTableCell = ({ const { regions } = storageKeyData; - if (!regionsLookup || !regionsData || !regions) { - return ; + if (!regionsLookup || !regionsData || regions.length === 0) { + return None; } return (