Commit 1a89a04
committed
🩹 [#266] fix AddressNL crash inside of EditGrid component
When the user click on the "Add another" or "Edit item" button then it triggers
'onClick' event for the EditGrid item button, which uses onChange and flushSync
under the hood. Durin flushSync the AddressNl component is being updated and loaded,
but when it happens the 'values' in the FormikContext are not updated, so
the 'addressData' is undefined.1 parent db0741c commit 1a89a04
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
0 commit comments