adding button for clearing all of the scans, including ones that were replaced by new scans
This commit is contained in:
parent
efb3c9eb59
commit
14126fd7c5
4 changed files with 47 additions and 4 deletions
|
|
@ -170,7 +170,7 @@ export default function DevicePage() {
|
|||
deviceAPI.listFoundComponents(parseInt(deviceID))
|
||||
.then(resp => {
|
||||
console.log(resp.data)
|
||||
if (resp.data.foundComponents){
|
||||
if (resp.data.foundComponents?.i2c || resp.data.foundComponents?.oneWire){
|
||||
setScannedAddresses(pond.ListFoundComponentsResponse.fromObject(resp.data).foundComponents ?? undefined)
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue