master
Lucas Duailibe 2018-04-20 09:54:15 -03:00
parent c794de0e9f
commit 57cdf314d5
2 changed files with 3 additions and 3 deletions

View File

@ -83,7 +83,7 @@ class Playground extends React.Component {
options={options}
debugAst={editorState.showAst}
debugDoc={editorState.showDoc}
secondFormat={editorState.showSecondFormat}
reformat={editorState.showSecondFormat}
>
{({ formatted, debug }) => (
<React.Fragment>

View File

@ -18,7 +18,7 @@ export default class PrettierFormat extends React.Component {
"options",
"debugAst",
"debugDoc",
"secondFormat"
"reformat"
]) {
if (prevProps[key] !== this.props[key]) {
this.format();
@ -34,7 +34,7 @@ export default class PrettierFormat extends React.Component {
options,
debugAst: ast,
debugDoc: doc,
secondFormat: reformat
reformat
} = this.props;
worker