Merge pull request #5037 from usebruno/feature/cherry-pick-v2

Cherry pick regression fixes
This commit is contained in:
lohit
2025-07-03 20:57:31 +05:30
committed by GitHub
2 changed files with 3 additions and 1 deletions

View File

@@ -27,7 +27,8 @@ const generateSnippet = ({ language, item, collection, shouldInterpolate = false
// Add auth headers if needed
if (request.auth && request.auth.mode !== 'none') {
const authHeaders = getAuthHeaders(collection.root.request.auth, request.auth);
const collectionAuth = collection?.root?.request?.auth || null;
const authHeaders = getAuthHeaders(collectionAuth, request.auth);
headers = [...headers, ...authHeaders];
}

View File

@@ -6,6 +6,7 @@ const StyledWrapper = styled.div`
display: grid;
overflow-y: hidden;
overflow-x: auto;
padding: 0 1px;
// for icon hover
position: inherit;