Skip to content

Commit

Permalink
fix(#1329): fix code generation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
helloanoop committed Jan 5, 2024
1 parent 4539575 commit fcc3a1e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '';

Expand Down

0 comments on commit fcc3a1e

Please sign in to comment.