Skip to content

Commit

Permalink
refactor: make description field dirty on appending h5p content
Browse files Browse the repository at this point in the history
  • Loading branch information
b-l-i-n-d committed Sep 30, 2024
1 parent 9e76013 commit 9509883
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,9 @@ const LessonModal = ({
const description = form.getValues('description');
const h5pContents = contents.map(convertToH5PShortCode);

form.setValue('description', `${description}\n${h5pContents.join('\n')}`);
form.setValue('description', `${description}\n${h5pContents.join('\n')}`, {
shouldDirty: true,
});
},
contentType: 'lesson',
addedContentIds: (() => {
Expand Down

0 comments on commit 9509883

Please sign in to comment.