Skip to content

Commit 17e778d

Browse files
committed
Bugfix: change model type, clear searched model
1 parent b490a89 commit 17e778d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

frontend/app/[locale]/models/components/model/ModelAddDialog.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,10 @@ export const ModelAddDialog = ({
290290
) {
291291
setConnectivityStatus({ status: null, message: "" });
292292
}
293+
// Clear model search term when model type changes
294+
if (field === "type") {
295+
setModelSearchTerm("");
296+
}
293297
};
294298

295299
// Verify if the vector dimension is valid

0 commit comments

Comments
 (0)