From b587560a10050cfd9d8fca8a22b5a036d30c3289 Mon Sep 17 00:00:00 2001 From: katherinehhh Date: Fri, 20 Oct 2023 10:35:56 +0800 Subject: [PATCH] fix: assocition select rendering error in create mode (#2880) --- .../antd/association-field/AssociationSelect.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/client/src/schema-component/antd/association-field/AssociationSelect.tsx b/packages/core/client/src/schema-component/antd/association-field/AssociationSelect.tsx index c44559e11..9436ec0d3 100644 --- a/packages/core/client/src/schema-component/antd/association-field/AssociationSelect.tsx +++ b/packages/core/client/src/schema-component/antd/association-field/AssociationSelect.tsx @@ -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); }