feat: disable cassette fields a machine doesn't have
This commit is contained in:
parent
c63dbf438d
commit
ba5f657d44
1 changed files with 5 additions and 2 deletions
|
|
@ -173,8 +173,11 @@ const FiatBalanceOverrides = ({ config, section }) => {
|
|||
view: el => el?.toString() ?? '—',
|
||||
isHidden: value =>
|
||||
it >
|
||||
R.defaultTo(
|
||||
0,
|
||||
machines.find(({ deviceId }) => deviceId === value.machine)
|
||||
?.numberOfCassettes
|
||||
)
|
||||
}),
|
||||
R.range(1, maxNumberOfCassettes + 1)
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue