nicolium: fix polls causing scheduled statuses list to crash

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-04-08 09:00:27 +00:00
parent 856e661bc5
commit a0a2a09855

View File

@@ -10,7 +10,7 @@ const buildPoll = (draftPoll: DraftStatus['poll']) => {
return v.parse(pollSchema, {
...draftPoll,
id: 'poll',
options: draftPoll.options.map((title: string) => ({ title })).toArray(),
options: draftPoll.options.map((title: string) => ({ title })),
});
} else {
return null;