Fix build

This commit is contained in:
uwap 2018-04-07 20:37:47 +02:00
parent ff67bcf2f8
commit 4b370889af

View file

@ -104,7 +104,9 @@ export default class UiItemList extends React.Component<UiItemListProps> {
const value = this.getValue(control); const value = this.getValue(control);
const on = (dontApply: ?boolean) => () => { const on = (dontApply: ?boolean) => () => {
if (dontApply == null || dontApply === false) { if (dontApply == null || dontApply === false) {
this.props.onChangeState(control.topic, this.val); this.props.onChangeState(control.topic,
// $FlowFixMe
this.val);
} }
}; };
return [ return [
@ -116,6 +118,7 @@ export default class UiItemList extends React.Component<UiItemListProps> {
max={control.max || 100} max={control.max || 100}
step={control.step || 1} step={control.step || 1}
onChange={(_event, next) => { onChange={(_event, next) => {
// $FlowFixMe
this.val = next; this.val = next;
on(control.delayedApply)(); on(control.delayedApply)();
}} }}