diff --git a/src/frontend/src/components/TaskModal.tsx b/src/frontend/src/components/TaskModal.tsx index cb8063f..5ff350b 100644 --- a/src/frontend/src/components/TaskModal.tsx +++ b/src/frontend/src/components/TaskModal.tsx @@ -181,28 +181,21 @@ function StatusButtons({ status, taskId, onAction }: { status: string; taskId: s } }; - const btn = (b: typeof primary[0]) => ( + const btn = (b: typeof buttons[0]) => ( ); + if (buttons.length === 0) { + return
-
; + } + return (
-
{primary.map(b => btn(b))}
- {advanced.length > 0 && ( -
- {!showAdvanced ? ( - - ) : ( -
- {advanced.map(b => btn(b))} - -
- )} +
{buttons.map(b => btn(b))}
+
)}