mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-09 23:49:27 +08:00
Merge branch 'main' into next
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…
x
Reference in New Issue
Block a user