File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
src/containers/Tenant/QueryEditor/QueryExplain Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -102,12 +102,6 @@ function QueryExplain(props) {
102
102
} ;
103
103
} , [ ] ) ;
104
104
105
- useEffect ( ( ) => {
106
- if ( ! props . ast && activeOption === ExplainOptionIds . ast ) {
107
- props . astQuery ( ) ;
108
- }
109
- } , [ activeOption , props . ast ] ) ;
110
-
111
105
const onSelectOption = ( tabId ) => {
112
106
setActiveOption ( tabId ) ;
113
107
} ;
@@ -121,7 +115,9 @@ function QueryExplain(props) {
121
115
} ;
122
116
123
117
const renderStub = ( ) => {
124
- return < div className = { b ( 'text-message' ) } > There is no explanation for the request</ div > ;
118
+ return (
119
+ < div className = { b ( 'text-message' ) } > { `There is no ${ activeOption } for the request` } </ div >
120
+ ) ;
125
121
} ;
126
122
127
123
const hasContent = ( ) => {
You can’t perform that action at this time.
0 commit comments