From 9c077b36cae9ff6ab3b05e7748ee6a9c57de3d11 Mon Sep 17 00:00:00 2001 From: Kenneth Aasan Date: Fri, 19 Jan 2024 14:12:33 +0100 Subject: [PATCH] fix: only render suffix in applicatorSchemaName if it exists --- .gitignore | 1 + library/src/helpers/schema.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 2db0d4ded..d013d8d8f 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,4 @@ npm-debug.log* lerna-debug.log* /**/*.tgz /.idea/ +/.vscode/ diff --git a/library/src/helpers/schema.ts b/library/src/helpers/schema.ts index d0f08f7b1..80ee432ca 100644 --- a/library/src/helpers/schema.ts +++ b/library/src/helpers/schema.ts @@ -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 {