Skip to content

Commit

Permalink
Fix duplicate nodes (#519)
Browse files Browse the repository at this point in the history
  • Loading branch information
rushil95 authored Jan 30, 2025
1 parent f3b3144 commit 482c03f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/ResourceInstance/NodesTable/NodesTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import {
} from "src/constants/statusChipStyles";
import { productTierTypes } from "src/constants/servicePlan";
import GenerateTokenDialog from "src/components/GenerateToken/GenerateTokenDialog";
import _ from "lodash";

const getRowBorderStyles = () => {
const styles = {};
Expand Down Expand Up @@ -58,7 +59,7 @@ export default function NodesTable(props) {
isManagedProxy,
isAccessSide,
subscriptionData,
nodes,
nodes = [],
refetchData,
isRefetching,
resourceName,
Expand Down Expand Up @@ -98,6 +99,7 @@ export default function NodesTable(props) {
list = list?.filter((item) =>
item?.nodeId?.toLowerCase()?.includes(searchText?.toLowerCase())
);
list = _.uniqBy(list, "id");

return list ?? [];
}, [searchText, nodes]);
Expand Down

0 comments on commit 482c03f

Please sign in to comment.