Skip to content

Commit

Permalink
return bond
Browse files Browse the repository at this point in the history
  • Loading branch information
S3bastianCZ committed Feb 27, 2025
1 parent 421f01e commit d3d0b57
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions @xen-orchestra/web/src/stores/xo-rest-api/pif.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,10 @@ export const usePifStore = defineStore('pif', () => {

const getBondsDevices = (pif: XoPif) => {
if (!pif.isBondMaster) return []
return []
// Todo: replace by this code when the PR #8368 is merged
// return pif.bondSlaves
// .map(slaveId => baseContext.records.value.find(pif => pif.id === slaveId))
// .map(pif => pif!.device)

return pif.bondSlaves
.map(slaveId => baseContext.records.value.find(pif => pif.id === slaveId))
.map(pif => pif!.device)
}

const context = {
Expand Down

0 comments on commit d3d0b57

Please sign in to comment.