Skip to content

Commit

Permalink
fix: Bulk approve was always a merge
Browse files Browse the repository at this point in the history
  • Loading branch information
pashidlos committed Jul 26, 2024
1 parent 0cd8d6d commit 58ffa4b
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/components/TestRunList/BulkOperation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,7 @@ export const BulkOperation: React.FunctionComponent = () => {
);

const isMerge: boolean = React.useMemo(
() =>
!!rows.find((row: GridRowModel) =>
selectedIds.includes(row.id.toString()),
),
() => !!rows.find((row: GridRowModel) => selectedIds.includes(row.id.toString()))?.model.merge,
[selectedIds, rows],
);

Expand Down Expand Up @@ -271,9 +268,7 @@ export const BulkOperation: React.FunctionComponent = () => {
onCancel={dismissDialog}
content={
<Typography>
{`Are you sure you want to ${submitButtonText().toLowerCase()} ${
selectedRows.length
} items?`}
{`Are you sure you want to ${submitButtonText().toLowerCase()} ${selectedRows.length} items?`}
</Typography>
}
onSubmit={() => {
Expand Down

0 comments on commit 58ffa4b

Please sign in to comment.