fix(client): option.schema?.['x-component']

This commit is contained in:
chenos 2023-04-19 16:20:20 +08:00
parent 3dfd5a1f7a
commit fa1785316d

View File

@ -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'],
};
}