Skip to content

Commit

Permalink
fix: only render suffix in applicatorSchemaName if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethaasan committed Jan 19, 2024
1 parent 69e7c7b commit 9c077b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ npm-debug.log*
lerna-debug.log*
/**/*.tgz
/.idea/
/.vscode/
2 changes: 1 addition & 1 deletion library/src/helpers/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export class SchemaHelpers {
otherCases: string,
title?: string,
) {
const suffix = (title !== null && ` ${title}:`) || `:`;
const suffix = title ? ` ${title}:` : `:`;
if (idx === 0) {
return `${firstCase}${suffix}`;
} else {
Expand Down

0 comments on commit 9c077b3

Please sign in to comment.