fixes #598 by adding safety on object lookups (#599)

This commit is contained in:
[._.]/ Adam Eivy 2024-01-02 05:43:15 -06:00 committed by GitHub
parent fcd51e61f2
commit fdb2248c35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,8 +41,8 @@ export const RouteTable: FC<RouteTableProps> = ({ forwardArray }) => {
cell: ({ row }: any) => (
<div style={{ whiteSpace: 'nowrap' }}>
{getNodeLink(
row.original.incoming_channel_info.node2_info.public_key,
row.original.incoming_channel_info.node2_info.alias
row.original.incoming_channel_info?.node2_info?.public_key,
row.original.incoming_channel_info?.node2_info?.alias
)}
</div>
),
@ -53,8 +53,8 @@ export const RouteTable: FC<RouteTableProps> = ({ forwardArray }) => {
cell: ({ row }: any) => (
<div style={{ whiteSpace: 'nowrap' }}>
{getNodeLink(
row.original.outgoing_channel_info.node2_info.public_key,
row.original.outgoing_channel_info.node2_info.alias
row.original.outgoing_channel_info?.node2_info?.public_key,
row.original.outgoing_channel_info?.node2_info?.alias
)}
</div>
),