File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
frontend/src/components/HomeComponents/Tasks Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -162,7 +162,9 @@ export const AddTaskdialog = ({
162162 </ Label >
163163 < div className = "col-span-3 space-y-2" >
164164 < Select
165- value = { newTask . project }
165+ value = {
166+ isCreatingNewProject ? '__CREATE_NEW__' : newTask . project
167+ }
166168 onValueChange = { ( value ) => {
167169 if ( value === '__CREATE_NEW__' ) {
168170 setIsCreatingNewProject ( true ) ;
@@ -180,7 +182,13 @@ export const AddTaskdialog = ({
180182 ? 'Select a project'
181183 : 'No projects yet'
182184 }
183- />
185+ >
186+ { isCreatingNewProject
187+ ? newTask . project
188+ ? `New: ${ newTask . project } `
189+ : '+ Create new project…'
190+ : undefined }
191+ </ SelectValue >
184192 </ SelectTrigger >
185193 < SelectContent
186194 onWheel = { ( e ) => e . stopPropagation ( ) }
You can’t perform that action at this time.
0 commit comments