fix: assocition select rendering error in create mode (#2880)

This commit is contained in:
katherinehhh 2023-10-20 10:35:56 +08:00 committed by GitHub
parent 7e33912242
commit b587560a10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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