Skip to content
Discussion options

You must be logged in to vote

@vnevermore :

When using "append" function to append new value on field array, there is a "compact" step to filter "undefined" or "null" when merging new value to current field array value and the empty space is also excluded as "compact" is using "Array.filter(Boolean)".

You can update append default value to blank space " " instead of empty space to make it work as your expectation.

Working demo: https://codesandbox.io/s/romantic-phoebe-4knms2?file=/src/App.js

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@bluebill1049
Comment options

@lucasrabiec
Comment options

Answer selected by bluebill1049
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants