fix(pages): update story edit page

remove null propagation from coAuthor field
This commit is contained in:
parent eab4d5eb8b
commit 7f12cb0af9
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

@ -24,7 +24,7 @@
});
const story: FormStory = {
title: originalStory!.title,
coAuthor: originalStory?.coAuthor ? (originalStory.coAuthor as IUser)._id : null,
coAuthor: originalStory.coAuthor ? (originalStory.coAuthor as IUser)._id : null,
completed: originalStory!.completed,
chapters: originalStory!.chapters.map((a, i) => ({
...a,