Skip to content

Commit 0876ad0

Browse files
lohxt1helloanoop
authored andcommitted
Revert "revert changes from another pr"
This reverts commit 94dfaf4.
1 parent a1c133b commit 0876ad0

File tree

1 file changed

+7
-0
lines changed
  • packages/bruno-app/src/components/RequestPane/HttpRequestPane

1 file changed

+7
-0
lines changed

packages/bruno-app/src/components/RequestPane/HttpRequestPane/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import Tests from 'components/RequestPane/Tests';
1515
import StyledWrapper from './StyledWrapper';
1616
import { find, get } from 'lodash';
1717
import Documentation from 'components/Documentation/index';
18+
import { useEffect } from 'react';
1819

1920
const ContentIndicator = () => {
2021
return (
@@ -111,6 +112,12 @@ const HttpRequestPane = ({ item, collection, leftPaneWidth }) => {
111112
requestVars.filter((request) => request.enabled).length +
112113
responseVars.filter((response) => response.enabled).length;
113114

115+
useEffect(() => {
116+
if (activeParamsLength === 0 && body.mode !== 'none') {
117+
selectTab('body');
118+
}
119+
}, []);
120+
114121
return (
115122
<StyledWrapper className="flex flex-col h-full relative">
116123
<div className="flex flex-wrap items-center tabs" role="tablist">

0 commit comments

Comments
 (0)