Skip to content

Commit bb9bac1

Browse files
authored
Merge pull request #57 from d3vco/master
Fix: match potential link on platform and name
2 parents d3f89c2 + eeb7768 commit bb9bac1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/operations/AddPotentialLinkModal.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const potentialLinksToAdd = computed(() => {
7171
combinations = cartesian(combinations);
7272
let executor;
7373
if (selectedPotentialLink.value.executors) {
74-
executor = selectedPotentialLink.value.executors.find((e) => filters.executor === e.name);
74+
executor = selectedPotentialLink.value.executors.find((e) => filters.executor === e.name && filters.agent.platform === e.platform);
7575
}
7676
7777
if (!combinations.length) {
@@ -130,7 +130,7 @@ function selectPotentialLink(link) {
130130
selectedPotentialLinkFacts.value = {};
131131
if (!selectedPotentialLink.value.ability_id) return;
132132
133-
let executor = link.executors.find((e) => filters.executor === e.name);
133+
let executor = link.executors.find((e) => filters.executor === e.name && filters.agent.platform === e.platform);
134134
potentialLinkCommand.value = executor.command;
135135
potentialLinkFields.value = [...new Set([...executor.command.matchAll(/#{(.*?)}/gm)].map((field) => field[1]))];
136136

0 commit comments

Comments
 (0)