Skip to content

Commit

Permalink
fix: projects not fully loaded (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
airslice authored Oct 30, 2024
1 parent 5827e50 commit 5bec448
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/components/organisms/PluginDetail/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export default (pluginId: string, installedPlugins?: Plugin[]) => {
const data = await fetch(base + "/graphql", {
method: "POST",
body: JSON.stringify({
query: `query { me { teams { id, name, projects(first:100) { nodes { id, name, coreSupport } } } } }`, // TODO: this query seems to pull all the projects for all the teams, which could be a lot of data returned. Would need to refactor it to pull only those projects that are for the logged in user.
query: `query { me { teams { id, name, projects(last:10000) { nodes { id, name, coreSupport } } } } }`, // TODO: This is only workaround, We need to either implement load by page OR load by current selected workspace
}),
headers: {
Authorization: `Bearer ${token}`,
Expand Down

0 comments on commit 5bec448

Please sign in to comment.