fixed issue where the scan card would not appear if you navigate to the device page by any way other than the devices table

This commit is contained in:
csawatzky 2025-08-27 16:59:42 -06:00
parent 9b20446dec
commit 0f09854f02

View file

@ -167,7 +167,7 @@ export default function DevicePage() {
}
const loadPortScan = () => {
deviceAPI.listFoundComponents(device.id())
deviceAPI.listFoundComponents(parseInt(deviceID))
.then(resp => {
if (resp.data.foundComponents?.i2c){
setScannedAddresses(resp.data.foundComponents ?? undefined)