Skip to content

Commit

Permalink
Fixed TypeError: Cannot read properties of undefined (reading 'locale…
Browse files Browse the repository at this point in the history
…Compare')
  • Loading branch information
Elson9 committed Jun 26, 2024
1 parent 47bc3cf commit f137491
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nextapp/pages/manager/gateways/list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,8 @@ const MyGatewaysPage: React.FC = () => {
{namespaceSearchResults
.sort(
(a, b) =>
a.displayName.localeCompare(b.displayName) ||
a.name.localeCompare(b.name)
a.displayName?.localeCompare(b.displayName) ||
a.name?.localeCompare(b.name)
)
.map((namespace) => (
<Flex
Expand Down

0 comments on commit f137491

Please sign in to comment.