Fix build

This commit is contained in:
uwap 2018-03-28 03:39:31 +02:00
parent bec10c91ef
commit 8661500b17

View file

@ -95,6 +95,7 @@ export class UiControl<I: UIControl> extends UiItem<I> {
isEnabled() { isEnabled() {
if (Object.keys(this.props.item).includes("enableCondition") && if (Object.keys(this.props.item).includes("enableCondition") &&
// $FlowFixMe
typeof this.props.item.enableCondition == "function") { typeof this.props.item.enableCondition == "function") {
const enableCondition = this.props.item.enableCondition; const enableCondition = this.props.item.enableCondition;
const value = this.getValue(); const value = this.getValue();