Skip to content

Commit 17f917e

Browse files
authored
fix(FR-2497): add null check for extra_mounts vfolder rendering in EndpointDetailPage (#6500)
1 parent 96e1f1e commit 17f917e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

react/src/pages/EndpointDetailPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ const EndpointDetailPage: React.FC<EndpointDetailPageProps> = () => {
561561
children: (
562562
<BAIFlex direction="column" align="start">
563563
{_.map(endpoint?.extra_mounts, (vfolder) => {
564-
return (
564+
return vfolder ? (
565565
<Typography.Link
566566
onClick={() => {
567567
vfolder?.row_id && open(vfolder?.row_id);
@@ -572,7 +572,7 @@ const EndpointDetailPage: React.FC<EndpointDetailPageProps> = () => {
572572
{vfolder?.name}
573573
</BAIFlex>
574574
</Typography.Link>
575-
);
575+
) : null;
576576
})}
577577
</BAIFlex>
578578
),

0 commit comments

Comments
 (0)