Skip to content

Commit 493315a

Browse files
committed
Hide batch actions for dev runs
1 parent 8db1da6 commit 493315a

File tree

1 file changed

+3
-1
lines changed
  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.v3.$projectParam.batches

1 file changed

+3
-1
lines changed

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.v3.$projectParam.batches/route.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,9 @@ function BatchesTable({ batches, hasFilters, filters }: BatchList) {
251251
function BatchActionsCell({ batch, path }: { batch: BatchListItem; path: string }) {
252252
const location = useLocation();
253253

254-
if (batch.hasFinished) return <TableCell to={path}>{""}</TableCell>;
254+
if (batch.hasFinished || batch.environment.type === "DEVELOPMENT") {
255+
return <TableCell to={path}>{""}</TableCell>;
256+
}
255257

256258
return (
257259
<TableCellMenu

0 commit comments

Comments
 (0)