Skip to content
Snippets Groups Projects
Commit d5f48b71 authored by Alexandros Georgantas's avatar Alexandros Georgantas Committed by Yannis Barlas
Browse files

Fix of save functionality

parent 775dcdad
No related branches found
No related tags found
No related merge requests found
......@@ -77,7 +77,7 @@ export default class SimpleEditor extends React.Component {
const exporter = new SimpleExporter(config)
const convertedSource = exporter.exportDocument(source)
onSave(convertedSource)
return onSave(convertedSource)
}
// NOTE -- Theoretically, we shouldn't lock when the editor is in read only
......
......@@ -73,14 +73,13 @@ export class SimpleEditorWrapper extends React.Component {
const { fragment } = this.props
fragment.source = source
this.update(fragment)
// return callback()
return this.update(fragment)
}
update (newChapter) {
const { book } = this.props
const { updateFragment } = this.props.actions
updateFragment(book, newChapter)
return updateFragment(book, newChapter)
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment