Skip to content

Commit 313faa6

Browse files
committed
fix(react-formio): fix formbuilder change
1 parent 47f4bc8 commit 313faa6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/react-formio/src/components/form-edit/useFormEdit.hook.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import cloneDeep from "lodash/cloneDeep";
12
import { useEffect, useReducer } from "react";
23

34
import { FormSchema } from "../../interfaces/FormSchema";
@@ -47,7 +48,7 @@ export function useFormEdit(props: UseFormEditHookProps) {
4748
};
4849

4950
return {
50-
form: current,
51+
form: cloneDeep(current),
5152
redo,
5253
undo,
5354
reset,

0 commit comments

Comments
 (0)