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

Graph node timeline selection #179

Merged
merged 2 commits into from
Sep 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions applications/client/src/store/campaign/interaction-state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,15 @@ export class InteractionState extends ExtendedModel(() => ({
} else if (host) {
const comp = this.currentHosts.get(host);
if (comp) {
for (const hostBeacon of comp.beacons) {
this.appStore.campaign.timeline?.setBeacon(hostBeacon);
for (const hostBeaconId of comp.beaconIds) {
this.appStore.campaign.timeline?.setBeacon(this.currentBeacons.get(hostBeaconId));
}
}
} else if (server) {
const comp = this.appStore.graphqlStore.servers.get(server);
if (comp) {
for (const serverBeacon of comp.beacons) {
this.appStore.campaign.timeline?.setBeacon(this.currentBeacons.get(serverBeacon.id));
}
}
}
Expand Down