Skip to content

Commit

Permalink
Merge pull request #57 from d3vco/master
Browse files Browse the repository at this point in the history
Fix: match potential link on platform and name
  • Loading branch information
elegantmoose authored Jul 1, 2024
2 parents d3f89c2 + eeb7768 commit bb9bac1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/operations/AddPotentialLinkModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const potentialLinksToAdd = computed(() => {
combinations = cartesian(combinations);
let executor;
if (selectedPotentialLink.value.executors) {
executor = selectedPotentialLink.value.executors.find((e) => filters.executor === e.name);
executor = selectedPotentialLink.value.executors.find((e) => filters.executor === e.name && filters.agent.platform === e.platform);
}
if (!combinations.length) {
Expand Down Expand Up @@ -130,7 +130,7 @@ function selectPotentialLink(link) {
selectedPotentialLinkFacts.value = {};
if (!selectedPotentialLink.value.ability_id) return;
let executor = link.executors.find((e) => filters.executor === e.name);
let executor = link.executors.find((e) => filters.executor === e.name && filters.agent.platform === e.platform);
potentialLinkCommand.value = executor.command;
potentialLinkFields.value = [...new Set([...executor.command.matchAll(/#{(.*?)}/gm)].map((field) => field[1]))];
Expand Down

0 comments on commit bb9bac1

Please sign in to comment.