diff --git a/pages/facilities/index.js b/pages/facilities/index.js index bb169f9..69cfa9b 100644 --- a/pages/facilities/index.js +++ b/pages/facilities/index.js @@ -201,12 +201,15 @@ function FacilityHome(props) { mutate() - .then(_ => { - actions.resetForm({ - values: { - q: '' - } - }) + .then(ok => { + + if(!!ok){ + actions.resetForm({ + values: { + q: '' + } + }) + } })