# HG changeset patch # User Alexandre Segura # Date 1498653815 -7200 # Node ID dc906a57861651cee5f26f5d1dfbaeaefc16ecce # Parent b0e36664f1f2aaf3a3d37b8dfa86f9763dd3d4c1 Fix error. diff -r b0e36664f1f2 -r dc906a578616 client/src/components/SlateEditor.js --- a/client/src/components/SlateEditor.js Wed Jun 28 13:29:07 2017 +0200 +++ b/client/src/components/SlateEditor.js Wed Jun 28 14:43:35 2017 +0200 @@ -376,7 +376,11 @@ }) Object.assign(category, { - text: currentSelectionText + text: currentSelectionText, + selection: { + start: currentSelectionStart, + end: currentSelectionEnd, + }, }); categories = categories.push(category);