File tree Expand file tree Collapse file tree 1 file changed +13
-10
lines changed
static/app/components/profiling/flamegraph/flamegraphDrawer Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import {ExportProfileButton} from 'sentry/components/profiling/exportProfileButt
10
10
import { IconPanel } from 'sentry/icons' ;
11
11
import { t } from 'sentry/locale' ;
12
12
import { space } from 'sentry/styles/space' ;
13
+ import { defined } from 'sentry/utils' ;
13
14
import type {
14
15
CanvasPoolManager ,
15
16
CanvasScheduler ,
@@ -206,16 +207,18 @@ const FlamegraphDrawer = memo(function FlamegraphDrawer(props: FlamegraphDrawerP
206
207
: undefined
207
208
}
208
209
/>
209
- < ProfilingDetailsListItem margin = "none" >
210
- < ExportProfileButton
211
- size = "zero"
212
- priority = { theme . isChonk ? 'transparent' : undefined }
213
- eventId = { params . eventId }
214
- projectId = { params . projectId }
215
- orgId = { orgSlug }
216
- disabled = { params . eventId === undefined || params . projectId === undefined }
217
- />
218
- </ ProfilingDetailsListItem >
210
+ { defined ( params . eventId ) && defined ( params . projectId ) && (
211
+ < ProfilingDetailsListItem margin = "none" >
212
+ < ExportProfileButton
213
+ size = "zero"
214
+ priority = { theme . isChonk ? 'transparent' : undefined }
215
+ eventId = { params . eventId }
216
+ projectId = { params . projectId }
217
+ orgId = { orgSlug }
218
+ disabled = { params . eventId === undefined || params . projectId === undefined }
219
+ />
220
+ </ ProfilingDetailsListItem >
221
+ ) }
219
222
< Separator />
220
223
< ProfilingDetailsListItem >
221
224
< LayoutSelectionContainer >
You can’t perform that action at this time.
0 commit comments