mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 11:56:29 +00:00
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
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:
commit
43c6888634
@ -107,7 +107,7 @@ export function Result(props) {
|
|||||||
let v;
|
let v;
|
||||||
try {
|
try {
|
||||||
v = evaluate(expression, scope);
|
v = evaluate(expression, scope);
|
||||||
v = toDbType(v, dataType);
|
v = v && toDbType(v, dataType);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
v = null;
|
v = null;
|
||||||
}
|
}
|
||||||
|
@ -151,7 +151,7 @@ export const DataTypeTransformers = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export function toDbType(value: any, type: string) {
|
export function toDbType(value: any, type: string) {
|
||||||
if (value == null || (!value && type === 'date')) {
|
if (value == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user