Skip to content

Commit

Permalink
check for both ipv4 and ipv6
Browse files Browse the repository at this point in the history
  • Loading branch information
sinamics committed Aug 20, 2023
1 parent f8eb8dd commit 9e36798
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/components/modules/table/memberEditCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,20 @@ const MemberEditCell = ({ nwid, central = false }: IProp) => {
);
}
if (id === "ipAssignments") {
if (!original.ipAssignments || !original.ipAssignments.length)
const hasRfc4193Assigned = original?.V6AssignMode?.rfc4193;
const has6planeAssigned = original?.V6AssignMode?.["6plane"];

if (
!original.ipAssignments?.length &&
!hasRfc4193Assigned &&
!has6planeAssigned
) {
return (
<p className="text-gray-500">
{t("networkMembersTable.column.ipAssignments.notAssigned")}
</p>
);
}

return (
<div className="space-y-1">
Expand Down

0 comments on commit 9e36798

Please sign in to comment.