Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: workflow log search input controlled state (#29930)
yyh2efdb7b887e7
diff --git a/web/app/components/app/workflow-log/filter.spec.tsx b/web/app/components/app/workflow-log/filter.spec.tsxindex d7bec412249..04216e5cc87 100644--- a/web/app/components/app/workflow-log/filter.spec.tsx+++ b/web/app/components/app/workflow-log/filter.spec.tsx@@ -7,6 +7,7 @@* - Keyword search*/+import { useState } from 'react'import { fireEvent, render, screen, waitFor } from '@testing-library/react'import userEvent from '@testing-library/user-event'import Filter, { TIME_PERIOD_MAPPING } from './filter'@@ -293,12 +294,21 @@ describe('Filter', () => {const user = userEvent.setup()const setQueryParams = jest.fn()- render(- <Filter- queryParams={createDefaultQueryParams()}- setQueryParams={setQueryParams}- />,- )+ const Wrapper = () => {+ const [queryParams, updateQueryParams] = useState<QueryParam>(createDefaultQueryParams())+ const handleSetQueryParams = (next: QueryParam) => {+ updateQueryParams(next)+ setQueryParams(next)+ }+ return (+ <Filter+ queryParams={queryParams}+ setQueryParams={handleSetQueryParams}+ />+ )+ }++ render(<Wrapper />)const input = screen.getByPlaceholderText('common.operation.search')await user.type(input, 'workflow')diff --git a/web/app/components/app/workflow-log/filter.tsx b/web/app/components/app/workflow-log/filter.tsxindex 0c8d72c1be8..a4db4c96425 100644--- a/web/app/components/app/workflow-log/filter.tsx+++ b/web/app/components/app/workflow-log/filter.tsx@@ -65,7 +65,7 @@ const Filter: FC<IFilterProps> = ({ queryParams, setQueryParams }: IFilterProps)wrapperClassName='w-[200px]'showLeftIconshowClearIcon- value={queryParams.keyword}+ value={queryParams.keyword ?? ''}placeholder={t('common.operation.search')!}onChange={(e) => {setQueryParams({ ...queryParams, keyword: e.target.value })