We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58789f9 commit e70e9caCopy full SHA for e70e9ca
src/Dispatcher.js
@@ -38,13 +38,11 @@ export default class Dispatcher extends Component {
38
}
39
40
launchAction() {
41
- this.context.store.dispatch(JSON.parse(this.refs.action.innerText.replace(/\s+/g, ' ')));
+ this.context.store.dispatch(JSON.parse(this.refs.action.textContent.replace(/\s+/g, ' ')));
42
43
44
componentDidMount() {
45
- this.refs.action.innerText = this.props.initEmpty ? '\n' : `{
46
- "type": ""
47
- }`;
+ this.refs.action.innerHTML = this.props.initEmpty ? '<br/>' : '{<br/>"type": ""<br/>}';
48
49
50
render() {
0 commit comments