diff --git a/packages/frontend/editor-ui/src/components/Node/NodeCreator/composables/useViewStacks.ts b/packages/frontend/editor-ui/src/components/Node/NodeCreator/composables/useViewStacks.ts index 327171f399..0b9fdb0caa 100644 --- a/packages/frontend/editor-ui/src/components/Node/NodeCreator/composables/useViewStacks.ts +++ b/packages/frontend/editor-ui/src/components/Node/NodeCreator/composables/useViewStacks.ts @@ -241,8 +241,12 @@ export const useViewStacks = defineStore('nodeCreatorViewStacks', () => { ) { const aiNodes = items.filter((node): node is NodeCreateElement => isAINode(node)); const canvasHasAINodes = useCanvasStore().aiNodes.length > 0; + const isVectorStoresCategory = stackCategory === AI_CATEGORY_VECTOR_STORES; - if (aiNodes.length > 0 && (canvasHasAINodes || isAiRootView(getLastActiveStack()))) { + if ( + aiNodes.length > 0 && + (canvasHasAINodes || isAiRootView(getLastActiveStack()) || isVectorStoresCategory) + ) { const sectionsMap = new Map(); const aiRootNodes = filterAiRootNodes(aiNodes); const aiSubNodes = difference(aiNodes, aiRootNodes);