Answer the question
In order to leave comments, you need to log in
How to change the code correctly?
I have this structure prntscr.com/ceowt6
And there is this code in the reducer
case DELETE_STRUCTURE_COUPLE:
let obj_str = state.structure;
objectPath.del(obj_str, action.level);
return {
...state,
structure: obj_str
};
Answer the question
In order to leave comments, you need to log in
You can for example like this:
case DELETE_STRUCTURE_COUPLE:
return {
...state,
structure: objectPath.del(state.structure, action.level)
};
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question