form.setFieldValue with field array
I am trying to update a field in the ingredients array (stored as a temporary value when editing it, so I can revert to the previous state if the user cancels the edit):
When doing this I get the following TypeScript error:
Why can't the
setFieldValue() detect that is a proper key? Is there a better way to revert the value at the specific index to the previous state?