diff --git a/src/component/ComponentHistory.tsx b/src/component/ComponentHistory.tsx index 8173b12..8c6f56c 100644 --- a/src/component/ComponentHistory.tsx +++ b/src/component/ComponentHistory.tsx @@ -33,7 +33,7 @@ export default function ComponentHistory(props: Props) { offset: or(res.data.nextOffset, 0) }); }) - .catch((err: any) => { + .catch((_err: any) => { resolve({ records: [] as Record[], total: 0, diff --git a/src/device/DevicesSummary.tsx b/src/device/DevicesSummary.tsx index 003dc6b..186a1eb 100644 --- a/src/device/DevicesSummary.tsx +++ b/src/device/DevicesSummary.tsx @@ -88,38 +88,34 @@ export default function DevicesSummary(props: Props) { return ( - {loadingStats ? - - : - setSelected("total")} - > - - - } - /> - - - - {stats.total} Devices - - - Total - - + setSelected("total")} + > + + + } + /> - - } + + + {stats.total} Devices + + + Total + + + + - {device.settings?.deviceId} - + {device.settings?.deviceId} + }, { title: "Device", @@ -354,7 +354,7 @@ export default function Devices() { > {groupsLoading ? - }/> + }/> : groups.map((group, index) => { if (group.id()) return ( {group.name()}} key={"group-tab-"+index}/>