fix: possible undefined values
This commit is contained in:
parent
4015e23d34
commit
ca88eafffd
1 changed files with 2 additions and 2 deletions
|
|
@ -61,7 +61,7 @@ const getElements = (machines, locale = {}, classes) => {
|
|||
{
|
||||
name: 'id',
|
||||
header: 'Machine',
|
||||
width: widthsByNumberOfCassettes[maxNumberOfCassettes].machine,
|
||||
width: widthsByNumberOfCassettes[maxNumberOfCassettes]?.machine,
|
||||
view: it => machines.find(({ deviceId }) => deviceId === it).name,
|
||||
size: 'sm',
|
||||
editable: false
|
||||
|
|
@ -77,7 +77,7 @@ const getElements = (machines, locale = {}, classes) => {
|
|||
size: 'sm',
|
||||
stripe: true,
|
||||
textAlign: 'right',
|
||||
width: widthsByNumberOfCassettes[maxNumberOfCassettes].cassette,
|
||||
width: widthsByNumberOfCassettes[maxNumberOfCassettes]?.cassette,
|
||||
suffix: fiatCurrency,
|
||||
bold: bold,
|
||||
view: it => it,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue