fix: cannot open the template when the data template filter is a custom function (#2183)

This commit is contained in:
katherinehhh 2023-07-05 11:18:43 +08:00 committed by GitHub
parent 046a0b4f4d
commit 3281aa5cf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,6 +126,9 @@ const InternalRemoteSelect = connect(
if (!rules) {
return undefined;
}
if (typeof rules === 'string') {
return rules;
}
const type = Object.keys(rules)[0] || '$and';
const conditions = rules[type];
const results = [];