Compare commits

...

2 Commits

Author SHA1 Message Date
Maintainer Bruno
2aa28ea4b3 fix: params table default scroll 2025-07-03 20:53:32 +05:30
Yash
81877fa96a fix: Add null check for collection root in snippet generator 2025-07-03 20:53:22 +05:30
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;