diff --git a/src/components/keysFind/index.jsx b/src/components/keysFind/index.jsx index aecd11ba..2189f536 100644 --- a/src/components/keysFind/index.jsx +++ b/src/components/keysFind/index.jsx @@ -183,10 +183,10 @@ export default forwardRef(({ onQuery, query, resetChange }, myRef) => { onChange={(va) => { if (va) { getKeyBatchSelect(va.key); + setModels({ ...models, plan: va }); } else { - setModels({ ...models, key_batch_id: "" }); + setModels({ ...models, key_batch_id: null, plan: null }); } - setModels({ ...models, plan: va }); }} />