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:58:49 -06:00
parent a9b9c0c33d
commit 78e51ac797

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)