Skip to content

Commit

Permalink
Guarding against operations without a summary
Browse files Browse the repository at this point in the history
  • Loading branch information
SvenHoeffler committed Sep 17, 2024
1 parent fdcdfda commit d118b54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/schemaAndComponentJsonBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ async function schemaBuilder(api, componentJson, existingNames, outputDir) {

// In cases where we need a triggers also as an action
let makeAction = false;
if (method.includes('get') && operation.summary.includes('#MAKEACTION#')) {
if (method.includes('get') && operation.summary && operation.summary.includes('#MAKEACTION#')) {
operation.summary = operation.summary.replace('#MAKEACTION#', '');
makeAction = true;
}
Expand Down

0 comments on commit d118b54

Please sign in to comment.