adding button for clearing all of the scans, including ones that were replaced by new scans

This commit is contained in:
csawatzky 2025-11-04 14:16:40 -06:00
parent efb3c9eb59
commit 14126fd7c5
4 changed files with 47 additions and 4 deletions

View file

@ -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)
}
})