mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-09 15:39:24 +08:00
Merge branch 'main' into next
This commit is contained in:
commit
43c6888634
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user