Fix build
This commit is contained in:
parent
8d2d39cb0e
commit
3ed861369e
2 changed files with 11 additions and 2 deletions
|
|
@ -14,6 +14,7 @@ import { MenuItem } from "material-ui/Menu";
|
|||
import Button from "material-ui/Button";
|
||||
|
||||
import keyOf from "utils/keyOf";
|
||||
import { getInternals, getActuals } from "utils/state";
|
||||
|
||||
type UiItemProps<I> = {
|
||||
item: I,
|
||||
|
|
@ -45,8 +46,8 @@ export default class UiItem<I:Object> extends React.Component<UiItemProps<I>> {
|
|||
typeof this.props.item.enableCondition == "function") {
|
||||
const enableCondition = this.props.item.enableCondition;
|
||||
const state = this.props.state;
|
||||
const internals = _.mapValues(state, (x) => x.internal);
|
||||
const actuals = _.mapValues(state, (x) => x.actual);
|
||||
const internals = getInternals(state);
|
||||
const actuals = getActuals(state);
|
||||
return enableCondition(internals, actuals, state);
|
||||
} else {
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue