We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 967f102 commit 54cf151Copy full SHA for 54cf151
src/containers/Tenant/QueryEditor/QueryExplain/QueryExplain.js
@@ -102,12 +102,6 @@ function QueryExplain(props) {
102
};
103
}, []);
104
105
- useEffect(() => {
106
- if (!props.ast && activeOption === ExplainOptionIds.ast) {
107
- props.astQuery();
108
- }
109
- }, [activeOption, props.ast]);
110
-
111
const onSelectOption = (tabId) => {
112
setActiveOption(tabId);
113
@@ -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
126
127
const hasContent = () => {
0 commit comments