Skip to content

Commit

Permalink
fix #49
Browse files Browse the repository at this point in the history
  • Loading branch information
GraemeFulton committed Jun 24, 2024
1 parent 81520bd commit 4f78151
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions components/toolbox/forms/DescriptionExcerptForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,12 @@ const Form = ({ user, postObject, isEditMode }) => {
if (!excerpt) {
setExcerpt(postObject?.excerpt);
}
setIsCreator(
postObject?.creators?.length &&
postObject.creators.find(creator => creator.id === user.id) !==
undefined
);
let iscreatr = postObject?.creators?.length &&
postObject.creators.find(creator => creator.id === user.id) !==
undefined

setIsCreator(iscreatr);
formik.setFieldValue("isCreator", iscreatr);
}, [postObject, user]);

return (
Expand Down

0 comments on commit 4f78151

Please sign in to comment.