Explorar o código

fix: invert *_ready getters to fix server status indicator (#25077)

Brendan Allan hai 4 meses
pai
achega
908e28175f
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      packages/app/src/context/global-sync/child-store.ts

+ 3 - 3
packages/app/src/context/global-sync/child-store.ts

@@ -187,7 +187,7 @@ export function createChildStoreManager(input: {
             projectMeta: initialMeta,
             projectMeta: initialMeta,
             icon: initialIcon,
             icon: initialIcon,
             get provider_ready() {
             get provider_ready() {
-              return providerQuery.isLoading
+              return !providerQuery.isLoading
             },
             },
             provider: { all: [], connected: [], default: {} },
             provider: { all: [], connected: [], default: {} },
             config: {},
             config: {},
@@ -207,13 +207,13 @@ export function createChildStoreManager(input: {
             permission: {},
             permission: {},
             question: {},
             question: {},
             get mcp_ready() {
             get mcp_ready() {
-              return mcpQuery.isLoading
+              return !mcpQuery.isLoading
             },
             },
             get mcp() {
             get mcp() {
               return mcpQuery.isLoading ? {} : (mcpQuery.data ?? {})
               return mcpQuery.isLoading ? {} : (mcpQuery.data ?? {})
             },
             },
             get lsp_ready() {
             get lsp_ready() {
-              return lspQuery.isLoading
+              return !lspQuery.isLoading
             },
             },
             get lsp() {
             get lsp() {
               return lspQuery.isLoading ? [] : (lspQuery.data ?? [])
               return lspQuery.isLoading ? [] : (lspQuery.data ?? [])