fix: 多选时设置项异常

This commit is contained in:
林熠 2020-08-24 12:48:34 +08:00
parent fa8706600e
commit 8cc9d73f91

View File

@ -21,7 +21,7 @@ class SettingFieldView extends Component<{ field: SettingField }> {
const { prototype } = componentMeta;
let visible;
try {
visible = field.isSingle && typeof condition === 'function' ? condition(field) !== false : true;
visible = typeof condition === 'function' ? condition(field) !== false : true;
} catch (error) {
console.error('exception when condition (hidden) is excuted', error);
}