File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
static/app/components/modals Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ export default function ProjectCreationModal({
4242 closeModal,
4343 defaultCategory,
4444} : Props ) {
45+ const [ category , setCategory ] = useState < Category | undefined > ( defaultCategory ) ;
4546 const [ platform , setPlatform ] = useState < OnboardingSelectedSDK | undefined > ( undefined ) ;
4647 const [ step , setStep ] = useState ( 0 ) ;
4748 const [ projectName , setProjectName ] = useState ( '' ) ;
@@ -61,6 +62,7 @@ export default function ProjectCreationModal({
6162 ...omit ( selectedPlatform , 'id' ) ,
6263 key : selectedPlatform . id ,
6364 } ) ;
65+ setCategory ( selectedPlatform . category ) ;
6466 }
6567
6668 const createProject = useCallback ( async ( ) => {
@@ -136,7 +138,7 @@ export default function ProjectCreationModal({
136138 < Fragment >
137139 < Subtitle > { t ( 'Choose a Platform' ) } </ Subtitle >
138140 < PlatformPicker
139- defaultCategory = { platform ?. category ?? defaultCategory }
141+ defaultCategory = { category }
140142 setPlatform = { handlePlatformChange }
141143 organization = { organization }
142144 platform = { platform ?. key }
You can’t perform that action at this time.
0 commit comments