Merge branch 'main' into next
Some checks are pending
Build Docker Image / build-and-push (push) Waiting to run
Build Pro Image / build-and-push (push) Waiting to run
E2E / Build (push) Waiting to run
E2E / Core and plugins (push) Blocked by required conditions
E2E / plugin-workflow (push) Blocked by required conditions
E2E / plugin-workflow-approval (push) Blocked by required conditions
E2E / plugin-data-source-main (push) Blocked by required conditions
E2E / Comment on PR (push) Blocked by required conditions
NocoBase FrontEnd Test / frontend-test (18) (push) Waiting to run

This commit is contained in:
GitHub Actions Bot 2024-09-04 13:19:02 +00:00
commit 43c6888634
2 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@ export function Result(props) {
let v;
try {
v = evaluate(expression, scope);
v = toDbType(v, dataType);
v = v && toDbType(v, dataType);
} catch (error) {
v = null;
}

View File

@ -151,7 +151,7 @@ export const DataTypeTransformers = {
};
export function toDbType(value: any, type: string) {
if (value == null || (!value && type === 'date')) {
if (value == null) {
return null;
}