fix: do nothing when clicking the selected model or file
This commit is contained in:
@@ -496,6 +496,9 @@ const SearchModel: React.FC<SearchInputProps> = (props) => {
|
||||
};
|
||||
|
||||
const handleSelectModelManually = (model: any) => {
|
||||
if (model.id === currentRef.current) {
|
||||
return;
|
||||
}
|
||||
handleOnSelectModel(model, true);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user