diff --git a/applications/client/src/views/Campaign/Explore/Panels/hooks/use-beacons.ts b/applications/client/src/views/Campaign/Explore/Panels/hooks/use-beacons.ts index f51567cb..f64582b2 100644 --- a/applications/client/src/views/Campaign/Explore/Panels/hooks/use-beacons.ts +++ b/applications/client/src/views/Campaign/Explore/Panels/hooks/use-beacons.ts @@ -43,7 +43,9 @@ export const useBeacons = (props?: BeaconsListRow) => { }); } } else if (props) { - return (store.campaign?.interactionState.selectedHost?.current?.beaconIds + return (store.campaign?.interactionState[ + `selected${store.router.params.currentItem === 'operator' ? 'Operator' : 'Host'}` + ]?.current?.beaconIds ?.map((beaconId: string | number | symbol) => store.graphqlStore.beacons.get(beaconId as string)) .filter( (beacon: BeaconModel | undefined) => diff --git a/applications/redeye-e2e/src/integration/e2e/redteam/graphql/hide-beacon-bulk.cy.js b/applications/redeye-e2e/src/integration/e2e/redteam/graphql/hide-beacon-bulk.cy.js index 1103aad7..49a03906 100644 --- a/applications/redeye-e2e/src/integration/e2e/redteam/graphql/hide-beacon-bulk.cy.js +++ b/applications/redeye-e2e/src/integration/e2e/redteam/graphql/hide-beacon-bulk.cy.js @@ -65,7 +65,10 @@ describe('Hide a Beacon using GraphQL', () => { .each(($li) => beacs.push($li.text())) .then(() => { cy.log(beacs.join(', ')); - cy.wrap(beacs).should('deep.equal', ['08/17—08/17SYSTEM *SYSTEM *8', '08/17—08/17user01user0114']); + cy.wrap(beacs).should('deep.equal', [ + '08/17—08/17500978634 · SYSTEM *SYSTEM *8', + '08/17—08/171042756528 · user01user0114', + ]); }); });