fix(#1329): fix code generation issue

This commit is contained in:
Anoop M D 2024-01-05 14:28:02 +05:30
parent 45395754bf
commit fcc3a1e944

View File

@ -20,7 +20,7 @@ const CodeView = ({ language, item }) => {
item.uid
);
const headers = [...collection?.root?.request?.headers, ...requestHeaders];
const headers = [...(collection?.root?.request?.headers || []), ...(requestHeaders || [])];
let snippet = '';