Skip to content

Commit 58aef4f

Browse files
committed
update
1 parent 112ca9a commit 58aef4f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/configuration/apiCommunicationUtils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ function normalizeTopic(
3838

3939
if (Array.isArray(topic)) {
4040
const normalized = topic.map((t): Topic => ({ value: getTopicValue(t) }));
41-
return normalized.length > 0 ? [normalized[0]] : [{ value: '' }];
41+
return normalized.length > 0 ? (normalized as [Topic]) : [{ value: '' }];
4242
}
4343

4444
return [{ value: getTopicValue(topic) }];
4545
}
46+

0 commit comments

Comments
 (0)