Skip to content

Commit

Permalink
fix: query is not updated on deploy page when tap enter
Browse files Browse the repository at this point in the history
  • Loading branch information
hibig committed Dec 12, 2024
1 parent c6d8240 commit cb5d9f6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/pages/llmodels/components/search-model.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,13 @@ const SearchModel: React.FC<SearchInputProps> = (props) => {
);
const handleSearchInputChange = useCallback((e: any) => {
searchInputRef.current = e.target.value;
console.log('change:', searchInputRef.current);
}, []);
const handlerSearchModels = useCallback(
async (e: any) => {
searchInputRef.current = e.target.value;
handleOnSearchRepo();
setTimeout(() => {
handleOnSearchRepo();
}, 100);
},
[handleOnSearchRepo]
);
Expand Down

0 comments on commit cb5d9f6

Please sign in to comment.