Skip to content

Commit 98d4bcb

Browse files
committed
fix: shouls always select result tab
1 parent 489f616 commit 98d4bcb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/containers/Tenant/QueryEditor/QueryResult/QueryResult.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ const resultOptions = [
2828
];
2929

3030
function QueryResult(props) {
31-
const [activeSection, setActiveSection] = useState(
32-
props.result ? resultOptionsIds.result : resultOptionsIds.stats,
33-
);
31+
const [activeSection, setActiveSection] = useState(resultOptionsIds.result);
3432
const isFullscreen = useSelector((state) => state.fullscreen);
3533
const dispatch = useDispatch();
3634

@@ -111,7 +109,9 @@ function QueryResult(props) {
111109
</Fullscreen>
112110
)}
113111
</React.Fragment>
114-
) : <span>{error?.data ?? error}</span>;
112+
) : (
113+
<span>{error?.data ?? error}</span>
114+
);
115115
};
116116

117117
return (

0 commit comments

Comments
 (0)