fix(fe2): not firing workspace invites queries if FF is off (#2685)

* fix(fe2): not firing workspace invites queries if FF is off

* added .value to ref
This commit is contained in:
Kristaps Fabians Geikins
2024-08-19 14:18:25 +03:00
committed by GitHub
parent e2d7172b0a
commit 248511070a
14 changed files with 218 additions and 61 deletions
@@ -11,8 +11,7 @@ export = !FF_WORKSPACES_MODULE_ENABLED
throw new WorkspacesModuleDisabledError()
},
workspaceInvite: async () => {
// Easier to manage in FE if this doesn't throw, just returns null
return null
throw new WorkspacesModuleDisabledError()
}
},
Mutation: {
@@ -69,8 +68,7 @@ export = !FF_WORKSPACES_MODULE_ENABLED
throw new WorkspacesModuleDisabledError()
},
workspaceInvites: async () => {
// Easier to manage in FE if this doesn't throw, just returns empty
return []
throw new WorkspacesModuleDisabledError()
}
},
Project: {