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
9b20446dec
commit
0f09854f02
1 changed files with 1 additions and 1 deletions
|
|
@ -167,7 +167,7 @@ export default function DevicePage() {
|
||||||
}
|
}
|
||||||
|
|
||||||
const loadPortScan = () => {
|
const loadPortScan = () => {
|
||||||
deviceAPI.listFoundComponents(device.id())
|
deviceAPI.listFoundComponents(parseInt(deviceID))
|
||||||
.then(resp => {
|
.then(resp => {
|
||||||
if (resp.data.foundComponents?.i2c){
|
if (resp.data.foundComponents?.i2c){
|
||||||
setScannedAddresses(resp.data.foundComponents ?? undefined)
|
setScannedAddresses(resp.data.foundComponents ?? undefined)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue