Improved the loading behaviour with the inspector

This commit is contained in:
Matt Aitken
2024-08-29 19:59:33 +01:00
parent 5e9b86ea9b
commit 259cfc5313
@@ -162,7 +162,13 @@ export default function Page() {
const usernameForEnv = user.id !== run.environment.userId ? run.environment.userName : undefined;
const initialLoad = !isUpToDate && !trace;
const inspectorSpanId = trace && !initialLoad ? selectedSpanId : run.spanId;
let inspectorSpanId = selectedSpanId;
if (!inspectorSpanId) {
if (initialLoad || !trace) {
inspectorSpanId = run.spanId;
}
}
return (
<>