From 3642ad04bd5da1090202df999d875c832b4b726c Mon Sep 17 00:00:00 2001 From: Mirjam Aulbach Date: Thu, 22 Aug 2024 12:34:30 +0200 Subject: [PATCH] Update topic name description generation for topic request form Signed-off-by: Mirjam Aulbach --- coral/src/app/features/topics/request/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coral/src/app/features/topics/request/utils.ts b/coral/src/app/features/topics/request/utils.ts index ba3a39f315..78c23b5fc0 100644 --- a/coral/src/app/features/topics/request/utils.ts +++ b/coral/src/app/features/topics/request/utils.ts @@ -75,13 +75,13 @@ function generateTopicNameDescription( ); } } else { - if (topicPrefix && topicPrefix.length > 0) { + if (topicPrefix && topicPrefix.length > 0 && topicPrefix[0].length > 0) { desc.unshift( `Prefix name with: ${generateNamePatternString(topicPrefix)}.` ); } - if (topicSuffix && topicSuffix.length > 0) { + if (topicSuffix && topicSuffix.length > 0 && topicSuffix[0].length > 0) { desc.unshift( `Suffix name with: ${generateNamePatternString(topicSuffix)}.` );