nicolium: fix polls causing scheduled statuses list to crash
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user