fixing the i2c sensors card erroring out when coming back to the page from support view via the breadcrumb

This commit is contained in:
csawatzky 2025-08-28 12:00:30 -06:00
parent 0f09854f02
commit c263f16346

View file

@ -227,7 +227,7 @@ export default function DeviceScannedComponents(props: Props){
</Box> </Box>
{validCompAddresses.length > 0 ? validCompAddresses.map((addr, index) => { {validCompAddresses.length > 0 ? validCompAddresses.map((addr, index) => {
return ( return (
<ScannedI2C key={index} sensorNum={index+1} addressData={addr} deviceProduct={device.settings.product} componentSelectionCallback={componentSelection} availablePositions={availablePositions.get(quack.AddressType.ADDRESS_TYPE_I2C) ?? []}/> <ScannedI2C key={index} sensorNum={index+1} addressData={addr} deviceProduct={device.settings.product} componentSelectionCallback={componentSelection} availablePositions={availablePositions.get(quack.AddressType.ADDRESS_TYPE_I2C) ?? new Map<quack.ComponentType, number[]>()}/>
) )
}) : }) :
<Box sx={{ <Box sx={{