File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
packages/web/app/src/pages Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' hive ' : patch
3
+ ---
4
+
5
+ Fix operation insights showing loading for missing operations
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ function GraphQLOperationBody(props: {
33
33
return < GraphQLHighlight className = "pt-6" code = { operation . body } /> ;
34
34
}
35
35
36
- return < div > Loading.. .</ div > ;
36
+ return < div > Operation not found .</ div > ;
37
37
}
38
38
39
39
const Operation_View_OperationBodyQuery = graphql ( `
@@ -147,7 +147,11 @@ function OperationView({
147
147
) }
148
148
< div className = "mt-12 w-full rounded-md border border-gray-800 bg-gray-900/50 p-5" >
149
149
< Section . Title > Operation body</ Section . Title >
150
- < GraphQLOperationBody operation = { result . data ?. target ?. operation ?? null } />
150
+ { result . fetching ? (
151
+ < div > Loading...</ div >
152
+ ) : (
153
+ < GraphQLOperationBody operation = { result . data ?. target ?. operation ?? null } />
154
+ ) }
151
155
</ div >
152
156
</ >
153
157
) ;
You can’t perform that action at this time.
0 commit comments