Skip to content

Commit

Permalink
fix: filter link search do not work (#1209)
Browse files Browse the repository at this point in the history
  • Loading branch information
caoxing9 authored Jan 2, 2025
1 parent 251d400 commit 6c42515
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/sdk/src/components/record-list/SocketRecordList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,17 @@ interface ISocketRecordListProps {
export const SocketRecordList = (props: ISocketRecordListProps) => {
const { selectedRecordIds, primaryFieldId, onSelected, onClick } = props;
const rowCount = useRowCount();
const { setValue: setSearch, setFieldId } = useSearch();
const { setValue: setSearch, setFieldId, setHideNotMatchRow } = useSearch();
const [searchInput, setSearchInput] = useState('');

useEffect(() => {
setFieldId(primaryFieldId);
}, [primaryFieldId, setFieldId]);

useEffect(() => {
setHideNotMatchRow(true);
}, [setHideNotMatchRow]);

const updateSearchParam = useMemo(() => {
return debounce((search: string) => {
return setSearch(search);
Expand Down

0 comments on commit 6c42515

Please sign in to comment.