This commit is contained in:
Benjamin Toby
2025-08-26 12:24:07 +01:00
parent 2336b71703
commit 1086b35b9d
3 changed files with 15 additions and 4 deletions
@@ -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;
}