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:
parent
a9b9c0c33d
commit
78e51ac797
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue