Skip to content

Commit

Permalink
Not using object as a type
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
  • Loading branch information
aaronchongth committed Jun 19, 2024
1 parent 3573c59 commit 2f3a1a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 4 additions & 4 deletions packages/dashboard/src/managers/resource-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@ export default class ResourceManager {
resources.allowedTasks || [
{
task_definition_id: 'patrol',
display_name: 'Patrol',
},
{
task_definition_id: 'delivery',
display_name: 'Delivery',
},
{
task_definition_id: 'clean',
display_name: 'Clean',
task_definition_id: 'compose-clean',
},
{
task_definition_id: 'custom_compose',
},
],
);
Expand Down
3 changes: 1 addition & 2 deletions packages/react-components/lib/tasks/create-task.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ export function CreateTaskForm({
id: '',
name: '',
category: tasksToDisplay[0].requestCategory,
description: defaultTaskDescription as object,
description: defaultTaskDescription,
unix_millis_earliest_start_time: 0,
priority: { type: 'binary', value: 0 },
user: '',
Expand Down Expand Up @@ -585,7 +585,6 @@ export function CreateTaskForm({
/>
);
case CustomComposeTaskDefinition.taskDefinitionId:
default:
return (
<CustomComposeTaskForm
taskDesc={taskRequest.description as CustomComposeTaskDescription}
Expand Down

0 comments on commit 2f3a1a7

Please sign in to comment.