Skip to content

Commit

Permalink
Fix Autocomplete clear
Browse files Browse the repository at this point in the history
  • Loading branch information
negreirosleo committed Sep 28, 2023
1 parent 31165c0 commit e211dcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/app/tasks/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default function Tasks() {
gap="16px"
>
<Select
onChange={(_, option) => option && handleChange('project', option.value)}
onChange={(_, option) => handleChange('project', option?.value || '')}
value={formState.project}
name="project"
label="Select project"
Expand All @@ -56,7 +56,7 @@ export default function Tasks() {
name="taskType"
label="Select task type"
value={formState.taskType}
onChange={(_, option) => option && handleChange('taskType', option.value)}
onChange={(_, option) => handleChange('taskType', option?.value || '')}
options={taskTypes.map((taskType) => ({ value: taskType.slug, label: taskType.name }))}
/>
<Input
Expand Down

0 comments on commit e211dcb

Please sign in to comment.