Quick fix

This commit is contained in:
Sebastian Seedorf
2022-09-09 21:48:41 +02:00
parent 2eaf8f719b
commit cd7a6a565f

View File

@@ -107,7 +107,7 @@ export const PageDetails: FC = () => {
if (beacons + modules[0] + modules[1] === 0 && modules[2] === 2) if (beacons + modules[0] + modules[1] === 0 && modules[2] === 2)
res = res.replace(/e3/g, 'e2') res = res.replace(/e3/g, 'e2')
else if (beacons + modules[0] + modules[1] === 0 && modules[2] >= 3) else if (beacons + modules[0] + modules[1] === 0 && modules[2] >= 3)
res = res.replace(/e3/g, 'ee') res = res.replace(/e3/g, 'e1')
// console.log(beacons, modules, res, dashedKey) // console.log(beacons, modules, res, dashedKey)
return res + (beaconModules ? `;${map[maxIdx]}3:${beaconModules}` : '') return res + (beaconModules ? `;${map[maxIdx]}3:${beaconModules}` : '')
} }
@@ -120,14 +120,14 @@ export const PageDetails: FC = () => {
min: '3', min: '3',
belt: 'express-transport-belt', belt: 'express-transport-belt',
items: [ items: [
group?.malls ...(group?.malls
.map(toDashedKey) .map(toDashedKey)
.filter(checkIfPresent) .filter(checkIfPresent)
.map(n => `${n}:r:1`) ?? [], .map(n => `${n}:r:1`) ?? []),
group?.exports ...(group?.exports
.map(toDashedKey) .map(toDashedKey)
.filter(checkIfPresent) .filter(checkIfPresent)
.map(n => `${n}:r:45`) ?? [] .map(n => `${n}:r:45`) ?? [])
].join(','), ].join(','),
ignore: inputFactories.map(toDashedKey).filter(checkIfPresent).join(','), ignore: inputFactories.map(toDashedKey).filter(checkIfPresent).join(','),
modules: [ modules: [