Skip to content

Commit

Permalink
Fix saving compiled minutes w/o changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ThiefMaster committed Nov 9, 2022
1 parent 58c1ced commit f8b7e2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion indico/web/client/js/react/components/notes/NoteEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export function NoteEditor({apiURL, imageUploadURL, closeModal, getNoteURL}) {
}, [apiURL, getNoteURL]);

const handleSubmit = async ({source}) => {
const currentValue = renderMode === 'markdown' ? source : source.getData();
const currentValue = source.getData ? source.getData() : source;
try {
if (!currentValue) {
await indicoAxios.delete(apiURL);
Expand Down

0 comments on commit f8b7e2b

Please sign in to comment.