Skip to content

Commit

Permalink
fix: [M3-8164] - regions length check (#10519)
Browse files Browse the repository at this point in the history
* fix: [M3-8164] - regions length check

* Added changeset: fix regions length check in HostNameTableCell

* PR feedback: @bnussman and @DevDW
  • Loading branch information
cpathipa authored May 29, 2024
1 parent 5a82040 commit 6f013a5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Upcoming Features
---

fix regions length check in HostNameTableCell ([#10519](https://github.com/linode/manager/pull/10519))
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ export const HostNameTableCell = ({

const { regions } = storageKeyData;

if (!regionsLookup || !regionsData || !regions) {
return <TableCell />;
if (!regionsLookup || !regionsData || regions.length === 0) {
return <TableCell>None</TableCell>;
}

return (
Expand Down

0 comments on commit 6f013a5

Please sign in to comment.