diff --git a/web/app/components/rag-pipeline/components/index.spec.tsx b/web/app/components/rag-pipeline/components/index.spec.tsx index a6628421ae..827fe124a7 100644 --- a/web/app/components/rag-pipeline/components/index.spec.tsx +++ b/web/app/components/rag-pipeline/components/index.spec.tsx @@ -92,6 +92,13 @@ vi.mock('@/app/components/workflow/store', () => { useWorkflowStore: () => ({ getState: () => ({ pipelineId: 'test-pipeline-id', + knowledgeName: 'Test Knowledge', + knowledgeIcon: { + icon_type: 'emoji' as const, + icon: '📚', + icon_background: '#FFFFFF', + icon_url: '', + }, setShowInputFieldPanel: mockSetShowInputFieldPanel, setShowEnvPanel: mockSetShowEnvPanel, setShowImportDSLModal: mockSetShowImportDSLModal, diff --git a/web/eslint-suppressions.json b/web/eslint-suppressions.json index b043a2d951..deb5aff795 100644 --- a/web/eslint-suppressions.json +++ b/web/eslint-suppressions.json @@ -518,7 +518,7 @@ }, "app/components/app/configuration/prompt-value-panel/index.spec.tsx": { "ts/no-explicit-any": { - "count": 3 + "count": 2 } }, "app/components/app/configuration/prompt-value-panel/utils.ts": { @@ -619,11 +619,6 @@ "count": 1 } }, - "app/components/app/switch-app-modal/index.spec.tsx": { - "ts/no-explicit-any": { - "count": 1 - } - }, "app/components/app/switch-app-modal/index.tsx": { "react-hooks-extra/no-direct-set-state-in-use-effect": { "count": 1 @@ -675,7 +670,7 @@ }, "app/components/apps/list.spec.tsx": { "ts/no-explicit-any": { - "count": 9 + "count": 5 } }, "app/components/apps/list.tsx": {