Skip to content

Commit d6b3f95

Browse files
committed
fix not found state flashing
1 parent 60f79eb commit d6b3f95

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/web/app/src/pages/target-trace.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1039,6 +1039,7 @@ function TargetInsightsNewPageContent(props: {
10391039
},
10401040
});
10411041

1042+
const isFetching = result.fetching || result.stale;
10421043
const trace = result.data?.target?.trace;
10431044

10441045
return (
@@ -1116,7 +1117,7 @@ function TargetInsightsNewPageContent(props: {
11161117
activeSpanTab={props.activeSpanTab}
11171118
/>
11181119
)}
1119-
{!trace && !result.fetching && (
1120+
{!trace && !isFetching && (
11201121
<>
11211122
<Meta title="Trace Not found" />
11221123
<NotFoundContent heading="Trace not found." subheading="This trace does not exist." />

0 commit comments

Comments
 (0)