diff --git a/frontend/src/app/components/modal/manage-provisions/AddProvisionModal.tsx b/frontend/src/app/components/modal/manage-provisions/AddProvisionModal.tsx index 66e11275..dbb06957 100644 --- a/frontend/src/app/components/modal/manage-provisions/AddProvisionModal.tsx +++ b/frontend/src/app/components/modal/manage-provisions/AddProvisionModal.tsx @@ -69,7 +69,7 @@ const AddProvisionModal: React.FC = ({ show, addProvisio }; await addProvisionHandler(provisionUpload); - onHide(); + handleOnHide(); } catch (err) { console.log('Error adding provision'); console.log(err); @@ -78,13 +78,19 @@ const AddProvisionModal: React.FC = ({ show, addProvisio } }; + const handleOnHide = () => { + onHide(); + setListEnabled(false); + setListItems(['']); + }; + return ( - + Add Provision diff --git a/frontend/src/app/components/modal/manage-provisions/forms/EditProvisionModalForm.tsx b/frontend/src/app/components/modal/manage-provisions/forms/EditProvisionModalForm.tsx index 3a653107..55bb1343 100644 --- a/frontend/src/app/components/modal/manage-provisions/forms/EditProvisionModalForm.tsx +++ b/frontend/src/app/components/modal/manage-provisions/forms/EditProvisionModalForm.tsx @@ -94,7 +94,6 @@ const EditProvisionModalForm: React.FC = ({ help_text: helpText, category: category, }; - console.log(provisionUpload); updateProvisionHandler(provisionUpload, provision.id); } };