Skip to content

Commit

Permalink
[#79] Add refresh form when initial value is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
dedenbangkit committed Feb 3, 2023
1 parent 92a51e3 commit 718dc21
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ export const Webform = ({
);

useEffect(() => {
form.resetFields();
if (initialValue.length) {
setLoadingInitial(true);
let values = {};
Expand Down

0 comments on commit 718dc21

Please sign in to comment.