Skip to content

Commit a7028a7

Browse files
committed
action type fix
1 parent 64a907e commit a7028a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src/components/bulk-action-bar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ export const BulkActionBar = Shade<BulkActionBarProps>({
2323
const hasRunning = selection.some((s) => s.runStatus === 'running')
2424
const hasStopped = selection.some((s) => s.runStatus !== 'running')
2525

26-
const bulkAction = async (action: string) => {
26+
const bulkAction = async (action: 'start' | 'stop' | 'restart' | 'setup' | 'update') => {
2727
setIsBulkLoading(true)
2828
const failures: string[] = []
2929
for (const svc of selection) {
3030
try {
3131
await api.call({
3232
method: 'POST',
33-
action: `/services/:id/${action}` as '/services/:id/start',
33+
action: `/services/:id/${action}`,
3434
url: { id: svc.id },
3535
})
3636
} catch {

0 commit comments

Comments
 (0)