Merge pull request 'Validation message is not Empty while clicking on Cancel button in Manage Employee popup from Infrastructure from project list.' (#125) from Bug#318_Kartik into Issue_May_4W
Reviewed-on: #125
This commit is contained in:
commit
d5ba7eaac1
@ -107,7 +107,10 @@ const BuildingModel = ({
|
||||
className="btn-close"
|
||||
data-bs-dismiss="modal"
|
||||
aria-label="Close"
|
||||
onClick={onClose}
|
||||
onClick={() => {
|
||||
onClose();
|
||||
reset(); // Call reset here
|
||||
}}
|
||||
></button>
|
||||
<h5 className="text-center mb-2">
|
||||
Manage Buildings - {project?.name}
|
||||
@ -186,7 +189,10 @@ const BuildingModel = ({
|
||||
className="btn btn-sm btn-label-secondary"
|
||||
data-bs-dismiss="modal"
|
||||
aria-label="Close"
|
||||
onClick={onClose}
|
||||
onClick={() => {
|
||||
onClose();
|
||||
reset(); // Call reset here
|
||||
}}
|
||||
>
|
||||
Cancel
|
||||
</button>
|
||||
|
Loading…
x
Reference in New Issue
Block a user