@openmrs/esm-form-engine-lib 4.2.2-pre.2443 → 4.2.2-pre.2447
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -31,7 +31,7 @@ export function useFormStateHelpers(dispatch, formFields) {
|
|
|
31
31
|
const getFormField = useCallback((fieldId)=>{
|
|
32
32
|
return formFields.find((field)=>field.id === fieldId);
|
|
33
33
|
}, [
|
|
34
|
-
formFields
|
|
34
|
+
formFields
|
|
35
35
|
]);
|
|
36
36
|
const removeFormField = useCallback((fieldId)=>{
|
|
37
37
|
dispatch({
|
package/package.json
CHANGED
|
@@ -31,7 +31,7 @@ export function useFormStateHelpers(dispatch: Dispatch<Action>, formFields: Form
|
|
|
31
31
|
(fieldId: string) => {
|
|
32
32
|
return formFields.find((field) => field.id === fieldId);
|
|
33
33
|
},
|
|
34
|
-
[formFields
|
|
34
|
+
[formFields],
|
|
35
35
|
);
|
|
36
36
|
|
|
37
37
|
const removeFormField = useCallback((fieldId: string) => {
|