diff --git a/package-lock.json b/package-lock.json index 5cdd4af..a7833bc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ucentral-client", - "version": "2.8.0(18)", + "version": "2.8.0(20)", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "ucentral-client", - "version": "2.8.0(18)", + "version": "2.8.0(20)", "license": "ISC", "dependencies": { "@chakra-ui/icons": "^2.0.11", diff --git a/package.json b/package.json index e9afca6..254f727 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ucentral-client", - "version": "2.8.0(18)", + "version": "2.8.0(20)", "description": "", "private": true, "main": "index.tsx", diff --git a/src/hooks/Network/Devices.ts b/src/hooks/Network/Devices.ts index 7e7ffba..1295731 100644 --- a/src/hooks/Network/Devices.ts +++ b/src/hooks/Network/Devices.ts @@ -41,6 +41,7 @@ export type DeviceWithStatus = { UUID: number; associations_2G: number; associations_5G: number; + associations_6G: number; compatible: string; connected: boolean; certificateExpiryDate?: number; diff --git a/src/pages/Devices/ListCard/index.tsx b/src/pages/Devices/ListCard/index.tsx index 8745a52..c7f6969 100644 --- a/src/pages/Devices/ListCard/index.tsx +++ b/src/pages/Devices/ListCard/index.tsx @@ -200,7 +200,7 @@ const DeviceListCard = () => { ), [], ); - const numberCell = React.useCallback((v: number) => , []); + const numberCell = React.useCallback((v?: number) => , []); const actionCell = React.useCallback( (device: DeviceWithStatus) => ( { Header: '6G', Footer: '', accessor: 'associations_6G', - Cell: () => numberCell(0), + Cell: (v) => numberCell(v.cell.row.original.associations_6G), customWidth: '50px', disableSortBy: true, },