Reactjs – How delete a key on Array is nesting inside of other array inside an object on redux toolkit
this my object product: { variants:[ { id:"my-key" metafields:[ { value:{ indexes:[ 1342332, 2213213 ] } } ] } ] } this is what I try to do updateProduct: (state, action: PayloadAction<any>) => { const { id, key } =…