From 49a7212f9c99cf4bd86e7c02129a7918c2b127cd Mon Sep 17 00:00:00 2001 From: eric <erotush77@gmail.com> Date: Tue, 19 Nov 2024 13:14:42 +0300 Subject: [PATCH] Modified handleSearch for facilities/index.js --- pages/facilities/index.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) 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: '' + } + }) + } })