We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 112ca9a commit 58aef4fCopy full SHA for 58aef4f
1 file changed
src/configuration/apiCommunicationUtils.ts
@@ -38,8 +38,9 @@ function normalizeTopic(
38
39
if (Array.isArray(topic)) {
40
const normalized = topic.map((t): Topic => ({ value: getTopicValue(t) }));
41
- return normalized.length > 0 ? [normalized[0]] : [{ value: '' }];
+ return normalized.length > 0 ? (normalized as [Topic]) : [{ value: '' }];
42
}
43
44
return [{ value: getTopicValue(topic) }];
45
46
+
0 commit comments