Removing empty values in a nested objects using react-hook-form #10396
Unanswered
tnamdevnote
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question:
Hi,
Currently, I have a react hook form set up where user should be able to remove each tag inside the array of nested groups. I was able to have each tag removed from the list, but I wasn't able to figure out ways to remove the empty subgroup.
Expected Behavior:
CSB link: https://codesandbox.io/p/sandbox/react-hook-form-lb57qc?file=%2Fsrc%2FForm%2Fconstant.ts%3A25%2C29
Beta Was this translation helpful? Give feedback.
All reactions