fix: association select data scope linkage should be supported in sub-form (#5146)

* fix: association select data scope linkage support sub-form

* fix: bug
This commit is contained in:
Katherine 2024-08-28 16:36:43 +08:00 committed by GitHub
parent e45d450157
commit e883985c4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,7 +41,7 @@ export const filterAnalyses = (filters): any[] => {
if (!operator) {
return true;
}
const regex = /\{\{\$(?:[a-zA-Z_]\w*)\.([a-zA-Z_]\w*)(?:\.id)?\}\}/;
const regex = /\{\{\$[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*\.(\w+)\.id\}\}/;
const fieldName = jsonlogic?.value?.match?.(regex)?.[1];
if (fieldName) {
results.push(fieldName);