File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed
static/app/components/modals Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -53,12 +53,14 @@ export default function ProjectCreationModal({
53
53
const organization = useOrganization ( ) ;
54
54
55
55
function handlePlatformChange ( selectedPlatform : Platform | null ) {
56
- if ( selectedPlatform ) {
57
- setPlatform ( {
58
- ...omit ( selectedPlatform , 'id' ) ,
59
- key : selectedPlatform . id ,
60
- } ) ;
56
+ if ( ! selectedPlatform ) {
57
+ setPlatform ( undefined ) ;
58
+ return ;
61
59
}
60
+ setPlatform ( {
61
+ ...omit ( selectedPlatform , 'id' ) ,
62
+ key : selectedPlatform . id ,
63
+ } ) ;
62
64
}
63
65
64
66
const createProject = useCallback ( async ( ) => {
@@ -132,15 +134,12 @@ export default function ProjectCreationModal({
132
134
</ Header >
133
135
{ step === 0 && (
134
136
< Fragment >
135
- < Subtitle > Choose a Platform</ Subtitle >
137
+ < Subtitle > { t ( ' Choose a Platform' ) } </ Subtitle >
136
138
< PlatformPicker
137
- defaultCategory = { defaultCategory }
139
+ defaultCategory = { platform ?. category ?? defaultCategory }
138
140
setPlatform = { handlePlatformChange }
139
141
organization = { organization }
140
142
platform = { platform ?. key }
141
- showFilterBar = { false }
142
- navClassName = "centered"
143
- listClassName = "centered"
144
143
/>
145
144
</ Fragment >
146
145
) }
You can’t perform that action at this time.
0 commit comments