feat: Allow to skip submitting empty values in form data (#5830)
This commit is contained in:
@@ -947,3 +947,15 @@ function b64toB64UrlEncoded(str) {
|
||||
.replace(/\//g, "_")
|
||||
.replace(/=/g, "")
|
||||
}
|
||||
|
||||
export const isEmptyValue = (value) => {
|
||||
if (!value) {
|
||||
return true
|
||||
}
|
||||
|
||||
if (isImmutable(value) && value.isEmpty()) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user