Skip to content

Commit

Permalink
Fix error parameters is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
iWangJiaxiang authored Oct 19, 2019
1 parent d4e6760 commit 2c14dff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pdf-parts-gen.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export function getSecurityDef(spec, localize) {
// Parameter Table
function getParameterTableDef(parameters, paramType, localize) {
// let filteredParams= parameters ? parameters.filter(param => param.in === paramType):[];
if (parameters.length === 0) {
if (parameters === undefined || parameters.length === 0) {
return;
}
const tableContent = [
Expand Down

0 comments on commit 2c14dff

Please sign in to comment.