Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

Commit

Permalink
Operator / Beacon tab bugfix (#172)
Browse files Browse the repository at this point in the history
Co-authored-by: Courtney Carpenter <ccarpenter28@gmail.com>
  • Loading branch information
sharplessHQ and ccarpenter28 authored Aug 23, 2023
1 parent 51e1fff commit b8a2780
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
]);
});
});

Expand Down

0 comments on commit b8a2780

Please sign in to comment.