Updates
This commit is contained in:
@@ -43,7 +43,7 @@ export default function grabParsedValue({
|
||||
typeof value == "string" &&
|
||||
!value?.match(/./)
|
||||
) {
|
||||
value = "";
|
||||
newValue = "";
|
||||
}
|
||||
|
||||
if (targetFieldSchema?.encrypted) {
|
||||
@@ -76,5 +76,12 @@ export default function grabParsedValue({
|
||||
newValue = null;
|
||||
}
|
||||
|
||||
if (
|
||||
typeof newValue === "boolean" ||
|
||||
targetFieldSchema?.dataType?.match(/boolean/i)
|
||||
) {
|
||||
newValue = newValue ? 1 : 0;
|
||||
}
|
||||
|
||||
return newValue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user