From 38e27f1172fb9106c34647e10d6a14af29da3075 Mon Sep 17 00:00:00 2001 From: mahdahar <89adham@gmail.com> Date: Sat, 7 Mar 2026 16:25:06 +0700 Subject: [PATCH] feat: reset form after save on collection page --- app/Views/phlebo/collect.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Views/phlebo/collect.php b/app/Views/phlebo/collect.php index 5ab341f..3f54654 100644 --- a/app/Views/phlebo/collect.php +++ b/app/Views/phlebo/collect.php @@ -295,9 +295,9 @@ $roleConfig = $config['phlebo']; const totalChanged = samplesToCollect.length + samplesToUncollect.length; this.showToast(`Updated ${totalChanged} sample(s)`, 'success'); - + setTimeout(() => { - this.fetchPatientData(); + this.resetForm(); }, 1000); } catch (error) { console.error('Error:', error);