From d118b54db154a6c98832230bfa33fa7f27191993 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sven=20H=C3=B6ffler?= Date: Tue, 17 Sep 2024 10:27:01 +0200 Subject: [PATCH] Guarding against operations without a summary --- lib/utils/schemaAndComponentJsonBuilder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/schemaAndComponentJsonBuilder.js b/lib/utils/schemaAndComponentJsonBuilder.js index bf265d0..1263fdb 100644 --- a/lib/utils/schemaAndComponentJsonBuilder.js +++ b/lib/utils/schemaAndComponentJsonBuilder.js @@ -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; }