diff --git a/packages/core/client/src/schema-component/antd/table-v2/hooks/useUserVariable.ts b/packages/core/client/src/schema-component/antd/table-v2/hooks/useUserVariable.ts index 74e262218..0bb8007a0 100644 --- a/packages/core/client/src/schema-component/antd/table-v2/hooks/useUserVariable.ts +++ b/packages/core/client/src/schema-component/antd/table-v2/hooks/useUserVariable.ts @@ -19,7 +19,7 @@ const useOptions = (collectionName: string, { schema, operator, maxDepth, count value: option.name, label: option.title, // TODO: 现在是通过组件的名称来过滤能够被选择的选项,这样的坏处是不够精确,后续可以优化 - disabled: schema?.['x-component'] !== option.schema['x-component'], + disabled: schema?.['x-component'] !== option.schema?.['x-component'], }; }