fix(pages): update story edit page
remove null propagation from coAuthor field
This commit is contained in:
parent
eab4d5eb8b
commit
7f12cb0af9
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user