We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97e8999 commit b16f889Copy full SHA for b16f889
frontend/app/[locale]/models/components/model/ModelListCard.tsx
@@ -228,11 +228,15 @@ export const ModelListCard = ({
228
}}
229
placeholder={t("model.select.placeholder")}
230
value={selectedModel || undefined}
231
- onChange={onModelChange}
+ onChange={(value) => {
232
+ // Prevent duplicate onChange calls by checking if value actually changed
233
+ if (value !== selectedModel) {
234
+ onModelChange(value || "");
235
+ }
236
+ }}
237
allowClear={{
238
clearIcon: <CloseOutlined />,
239
- onClear={() => onModelChange("")}
240
size="middle"
241
onClick={(e) => e.stopPropagation()}
242
getPopupContainer={(triggerNode) =>
0 commit comments