Revert "revert: feat: Allow to skip submitting empty values in form data (#5830)" (#6227)

This reverts commit 1b6cb7d1bf.
This commit is contained in:
Tim Lai
2020-07-15 16:07:32 -07:00
committed by GitHub
parent 1b6cb7d1bf
commit eacc7b92d1
10 changed files with 75 additions and 27 deletions

View File

@@ -956,3 +956,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
}