forked from extern/bruno
fix(#1329): fix code generation issue
This commit is contained in:
parent
45395754bf
commit
fcc3a1e944
@ -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 = '';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user