From d3d0b57470bcce8e7c2955397dc920d4128025eb Mon Sep 17 00:00:00 2001 From: Sebastian CZECH Date: Thu, 27 Feb 2025 10:56:59 +0100 Subject: [PATCH] return bond --- @xen-orchestra/web/src/stores/xo-rest-api/pif.store.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/@xen-orchestra/web/src/stores/xo-rest-api/pif.store.ts b/@xen-orchestra/web/src/stores/xo-rest-api/pif.store.ts index 83db74548de..9ee7e35f313 100644 --- a/@xen-orchestra/web/src/stores/xo-rest-api/pif.store.ts +++ b/@xen-orchestra/web/src/stores/xo-rest-api/pif.store.ts @@ -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 = {