Explorar o código

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

* check if guest user

* boolean check fix
stevenfukase %!s(int64=4) %!d(string=hai) anos
pai
achega
23057cba67
Modificáronse 1 ficheiros con 4 adicións e 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) {