Skip to content

Commit

Permalink
Fix build now that we use key value strings for labels
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Chong <[email protected]>
  • Loading branch information
aaronchongth committed Jun 6, 2024
1 parent a1d3140 commit 114631e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-components/lib/tasks/create-task.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,8 @@ export function CreateTaskForm({
);
const initialBookingLabel = requestTask ? getTaskBookingLabelFromTaskRequest(requestTask) : null;
const [taskDefinitionId, setTaskDefinitionId] = React.useState<string>(
initialBookingLabel
? initialBookingLabel.description.task_definition_id
initialBookingLabel && initialBookingLabel.description.task_definition_id
? (initialBookingLabel.description.task_definition_id as string)
: supportedTasks.length > 0
? supportedTasks[0].taskDefinitionId
: DefaultTaskDefinitionId,
Expand Down

0 comments on commit 114631e

Please sign in to comment.