feat: reset form after save on collection page

This commit is contained in:
mahdahar 2026-03-07 16:25:06 +07:00
parent 527e047e68
commit 38e27f1172

View File

@ -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);