taking column out from heaters that is referencing length
This commit is contained in:
parent
02c7196751
commit
766c510009
2 changed files with 26 additions and 27 deletions
|
|
@ -78,21 +78,21 @@ export default function Heaters() {
|
||||||
cellStyle: {padding: 2},
|
cellStyle: {padding: 2},
|
||||||
render: row => (<Typography>{row.heater?.settings?.model}</Typography>)
|
render: row => (<Typography>{row.heater?.settings?.model}</Typography>)
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
title: "Device",
|
// title: "Device",
|
||||||
cellStyle: {padding: 2},
|
// cellStyle: {padding: 2},
|
||||||
render: row => {
|
// render: row => {
|
||||||
let display: string | number | undefined = "No Device Found"
|
// let display: string | number | undefined = "No Device Found"
|
||||||
if (row.devices.length > 0) {
|
// if (row.devices.length > 0) {
|
||||||
if (row.devices[0].device?.settings?.name) {
|
// if (row.devices[0].device?.settings?.name) {
|
||||||
display = row.devices[0].device?.settings?.name;
|
// display = row.devices[0].device?.settings?.name;
|
||||||
} else {
|
// } else {
|
||||||
display = row.devices[0].device?.settings?.deviceId;
|
// display = row.devices[0].device?.settings?.deviceId;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
return (<Typography>{display}</Typography>)
|
// return (<Typography>{display}</Typography>)
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -84,18 +84,17 @@ export default function TransactionViewer(props: Props) {
|
||||||
console.log("transactionViewer: " + displayedRows)
|
console.log("transactionViewer: " + displayedRows)
|
||||||
//console.log(transactions)
|
//console.log(transactions)
|
||||||
return (
|
return (
|
||||||
// <ResponsiveTable<Transaction>
|
<ResponsiveTable<Transaction>
|
||||||
// isLoading={loading}
|
isLoading={loading}
|
||||||
// title={"Inventory Transactions"}
|
title={"Inventory Transactions"}
|
||||||
// page={tablePage}
|
page={tablePage}
|
||||||
// columns={columns}
|
columns={columns}
|
||||||
// pageSize={pageSize}
|
pageSize={pageSize}
|
||||||
// rows={displayedRows}
|
rows={displayedRows}
|
||||||
// total={transactions.length}
|
total={transactions.length}
|
||||||
// setPage={page => setTablePage(page)}
|
setPage={page => setTablePage(page)}
|
||||||
// handleRowsPerPageChange={handleChange}
|
handleRowsPerPageChange={handleChange}
|
||||||
// />
|
/>
|
||||||
null
|
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue