Skip to content

Commit

Permalink
Merge pull request #30 from iWangJiaxiang/patch-1
Browse files Browse the repository at this point in the history
Fix error parameters is undefined
  • Loading branch information
mrin9 authored Oct 19, 2019
2 parents d4e6760 + 2c14dff commit 4bf0538
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 4bf0538

Please sign in to comment.