fix: maxNumberOfCassettes having -Infinity value
This commit is contained in:
parent
0e3e2eb141
commit
b8517b3c19
1 changed files with 3 additions and 3 deletions
|
|
@ -61,9 +61,9 @@ const MachinesTable = ({ machines, numToRender }) => {
|
|||
})
|
||||
}
|
||||
|
||||
const maxNumberOfCassettes = Math.max(
|
||||
...R.map(it => it.numberOfCassettes, machines)
|
||||
)
|
||||
const maxNumberOfCassettes = R.isEmpty(machines)
|
||||
? 0
|
||||
: Math.max(...R.map(it => it.numberOfCassettes, machines))
|
||||
|
||||
return (
|
||||
<TableContainer className={classes.table}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue