Skip to content

Commit

Permalink
fix: Bulk approve was always a merge (#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
pashidlos authored Jul 26, 2024
1 parent 0cd8d6d commit 8838efd
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 8838efd

Please sign in to comment.