mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-02 12:18:15 +08:00
fix: cannot open the template when the data template filter is a custom function (#2183)
This commit is contained in:
parent
046a0b4f4d
commit
3281aa5cf1
@ -126,6 +126,9 @@ const InternalRemoteSelect = connect(
|
|||||||
if (!rules) {
|
if (!rules) {
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
if (typeof rules === 'string') {
|
||||||
|
return rules;
|
||||||
|
}
|
||||||
const type = Object.keys(rules)[0] || '$and';
|
const type = Object.keys(rules)[0] || '$and';
|
||||||
const conditions = rules[type];
|
const conditions = rules[type];
|
||||||
const results = [];
|
const results = [];
|
||||||
|
Loading…
Reference in New Issue
Block a user