fix: do nothing when clicking the selected model or file

This commit is contained in:
jialin
2025-07-03 10:41:22 +08:00
parent c8933a6669
commit 8ac06259f5
3 changed files with 11 additions and 6 deletions
@@ -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) ||