SlateJS + redux
1
I want to store a SlateJS editor's value stored in redux instead of in state, but I when I change the hasLinks method, I immediately receive a crash stating: TypeError: Cannot read property 'inlines' of undefined Editor's hasLinks Method hasLinks = () => { // const { value } = this.state // Original const { value } = this.props // Update for redux // Alternative attempts // const { value } = this.props.editorValue // const value = this.props.editorValue // const { value } = this.props.editorValue // const value = Object.assign({}, this.props.editorValue) // const value = Value.fromJSON(Object.assign({}, this.props.editorValue)) return value.inlines.some(inline => inline.type == 'link') // Crashes on this line // retu...