Skip to content

Commit

Permalink
Merge pull request #1634 from flexn-io/fix/integration_asks_for_platform
Browse files Browse the repository at this point in the history
Single-platform integrations ask to pick a platform
  • Loading branch information
Marius456 authored Aug 8, 2024
2 parents 135f2bc + ed019e4 commit e82a8a4
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions packages/core/src/tasks/taskFinder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,7 @@ export const extractSingleExecutableTask = async (
suitableTasks: RnvTask[],
taskName: string
): Promise<RnvTask | undefined> => {
let hasPlatformAwareTasks = false;
suitableTasks.forEach((v) => {
if (v.platforms) {
hasPlatformAwareTasks = true;
}
});
if (!hasPlatformAwareTasks && suitableTasks.length === 1) {
if (suitableTasks.length === 1) {
return suitableTasks[0];
} else if (suitableTasks.length === 0) {
return undefined;
Expand All @@ -62,7 +56,6 @@ export const extractSingleExecutableTask = async (
// Restart the process now we defined specific platform
await selectPlatformIfRequired();
const newSuitableTasks = findTasksByTaskName(taskName);

if (newSuitableTasks.match.length === 1) {
return newSuitableTasks.match[0];
} else if (newSuitableTasks.match.length > 1) {
Expand Down

0 comments on commit e82a8a4

Please sign in to comment.