Skip to content

Commit f0256e9

Browse files
Abdkhan14Abdullah Khan
authored andcommitted
feat(new-trace): Rendering asset in drawer based on insights module access (#87599)
Co-authored-by: Abdullah Khan <[email protected]>
1 parent 1621edc commit f0256e9

File tree

1 file changed

+4
-2
lines changed
  • static/app/views/performance/newTraceDetails/traceDrawer/details/span/sections

1 file changed

+4
-2
lines changed

static/app/views/performance/newTraceDetails/traceDrawer/details/span/sections/description.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,9 @@ export function SpanDescription({
203203
<MissingFrame />
204204
)}
205205
</CodeSnippetWrapper>
206-
) : resolvedModule === ModuleName.RESOURCE && span.op === 'resource.img' ? (
206+
) : hasNewSpansUIFlag &&
207+
resolvedModule === ModuleName.RESOURCE &&
208+
span.op === 'resource.img' ? (
207209
<ResourceImageDescription formattedDescription={formattedDescription} node={node} />
208210
) : (
209211
<DescriptionWrapper>
@@ -286,7 +288,7 @@ function ResourceImageDescription({
286288
) : (
287289
<DisabledImages
288290
onClickShowLinks={() => setShowLinks(true)}
289-
projectSlug={span.project_slug}
291+
projectSlug={span.project_slug ?? node.event?.projectSlug}
290292
/>
291293
)}
292294
</StyledDescriptionWrapper>

0 commit comments

Comments
 (0)