N
N
Nikolay Semenov2018-03-18 17:16:01
JavaScript
Nikolay Semenov, 2018-03-18 17:16:01

How to be with a point in a field of object?

Hello colleagues.
I have such a situation. the project uses the redux-form library, it uses prefixes for fields like currentAddress.email
and it also has a function that returns throw { currentAddress.email: "That email is taken" };
those. uses the name input
and, of course, throw { currentAddress.email: "That email is taken" }; gives an error...
I cannot remove the dot in the prefix or replace it with _, the entire data structure collapses.
Is there a way out of this situation?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question