Explorar el Código

fix: Redirected to apiv3 endpoint when guest mode is enabled (#4443)

* check if guest user

* boolean check fix
stevenfukase hace 4 años
padre
commit
23057cba67
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      packages/app/src/client/services/EditorContainer.js

+ 4 - 0
packages/app/src/client/services/EditorContainer.js

@@ -206,6 +206,10 @@ export default class EditorContainer extends Container {
    * Retrieve Editor Settings
    */
   async retrieveEditorSettings() {
+    if (this.appContainer.isGuestUser) {
+      return;
+    }
+
     const { data } = await this.appContainer.apiv3Get('/personal-setting/editor-settings');
 
     if (data?.textlintSettings == null) {