Explorar el Código

removed await

kaori hace 4 años
padre
commit
e7e52a7ac7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      packages/app/src/components/PageEditor/OptionsSelector.jsx

+ 1 - 1
packages/app/src/components/PageEditor/OptionsSelector.jsx

@@ -138,7 +138,7 @@ class OptionsSelector extends React.Component {
 
   async switchTextlintEnabledHandler() {
     const newVal = !this.state.isEnabledTextlint;
-    await this.setState({ isEnabledTextlint: newVal });
+    this.setState({ isEnabledTextlint: newVal });
     this.updateIsTextlintEnabledToDB(newVal);
   }