Skip to content

Commit

Permalink
Add null guard in API changelog generator
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-helmich committed Nov 6, 2024
1 parent 4a4b8b3 commit 877be46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generator/generate-changelog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ async function generateAPIChangelog(apiVersion: APIVersion) {
) as ChangelogEntry[]
).map((change) => {
const operation = getOperationById(spec, change.operationId);
return { ...change, description: operation.operation.summary };
return { ...change, description: operation?.operation.summary };
});
const groupedChangelog = groupChangelogByOperation(changelog);
const hasBreakingChanges = changelog.some(
Expand Down

0 comments on commit 877be46

Please sign in to comment.