Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

fix(web): disable the create-key button once 16 API keys exist (#20665)

chanx49aaf8a3e012
diff --git a/web/src/components/api-service/chat-api-key-modal/index.tsx b/web/src/components/api-service/chat-api-key-modal/index.tsx
index 0f670da192..d810ecbd79 100644
--- a/web/src/components/api-service/chat-api-key-modal/index.tsx
+++ b/web/src/components/api-service/chat-api-key-modal/index.tsx
@@ -92,7 +92,7 @@ const ChatApiKeyModal = ({
className="w-fit shrink-0"
onClick={createToken}
loading={creatingLoading}
- disabled={tokenList?.length > 16}
+ disabled={tokenList?.length >= 16}
>
{t('createNewKey')}
</Button>