Skip to content

Commit

Permalink
Default undefined/null bootstrapServers to empty string
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Edgar <medgar@redhat.com>
  • Loading branch information
MikeEdgar committed Feb 5, 2024
1 parent 46db3b0 commit 56aca79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/app/[locale]/ClusterConnectionDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export async function ClusterConnectionDetails({
{external.map((l, idx) => (
<ListItem key={idx} className={"pf-v5-u-py-sm"}>
<ClipboardCopy isReadOnly={true}>
{l.bootstrapServers}
{l.bootstrapServers ?? ""}
</ClipboardCopy>
<Text component={"small"}>
{/*Listener type: {l.type}*/}
Expand Down Expand Up @@ -82,7 +82,7 @@ export async function ClusterConnectionDetails({
{internal.map((l, idx) => (
<ListItem key={idx} className={"pf-v5-u-py-sm"}>
<ClipboardCopy isReadOnly={true}>
{l.bootstrapServers}
{l.bootstrapServers ?? ""}
</ClipboardCopy>
<Text component={"small"}>
Authentication type: {l.authType || "none"}
Expand Down

0 comments on commit 56aca79

Please sign in to comment.