From 5bec4485ea72435dbe195ff224c4c308e8031bec Mon Sep 17 00:00:00 2001 From: lby Date: Wed, 30 Oct 2024 12:22:40 +0800 Subject: [PATCH] fix: projects not fully loaded (#98) --- web/src/components/organisms/PluginDetail/hooks.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/organisms/PluginDetail/hooks.ts b/web/src/components/organisms/PluginDetail/hooks.ts index b525ced..9d1648e 100644 --- a/web/src/components/organisms/PluginDetail/hooks.ts +++ b/web/src/components/organisms/PluginDetail/hooks.ts @@ -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}`,