Skip to content

Commit cbb2a94

Browse files
cursoragentarmenzg
andcommitted
fix(seer): Filter projects to selected only in bulk agent mutation
The bulk agent mutation was incorrectly applying changes to all projects in the table instead of only the selected projects. This fix filters the projects array to include only projects whose IDs are in projectIds, matching the pattern used by the 'Create PRs' dropdown. Co-authored-by: Armen Zambrano G. <armenzg@users.noreply.github.com>
1 parent 7a89eef commit cbb2a94

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

static/gsApp/views/seerAutomation/components/projectTable/seerProjectTableHeader.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,10 @@ export function ProjectTableHeader({
148148
key: typeof value === 'object' ? value.provider : value,
149149
label,
150150
onAction: () => {
151-
bulkMutateSelectedAgent(projects, value);
151+
const selectedProjects = projects.filter(project =>
152+
projectIds.includes(project.id)
153+
);
154+
bulkMutateSelectedAgent(selectedProjects, value);
152155
},
153156
})) ?? []
154157
}

0 commit comments

Comments
 (0)