fix: do nothing when clicking the selected model or file
This commit is contained in:
@@ -291,9 +291,6 @@ const AddModal: FC<AddModalProps> = (props) => {
|
||||
const handleOnSelectModel = async (item: any, manual?: boolean) => {
|
||||
// If the item is empty or the same as the selected model, do nothing
|
||||
|
||||
if (currentModelDuringEvaluate(item)) {
|
||||
return;
|
||||
}
|
||||
handleCancelFiles();
|
||||
if (
|
||||
_.isEmpty(item) ||
|
||||
|
||||
Reference in New Issue
Block a user