From 4b370889af0e9aa38fd22965c35ed7d543cadfb9 Mon Sep 17 00:00:00 2001 From: uwap Date: Sat, 7 Apr 2018 20:37:47 +0200 Subject: [PATCH] Fix build --- src/components/UiItemList/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/UiItemList/index.js b/src/components/UiItemList/index.js index 67e6b0d..a267629 100644 --- a/src/components/UiItemList/index.js +++ b/src/components/UiItemList/index.js @@ -104,7 +104,9 @@ export default class UiItemList extends React.Component { const value = this.getValue(control); const on = (dontApply: ?boolean) => () => { if (dontApply == null || dontApply === false) { - this.props.onChangeState(control.topic, this.val); + this.props.onChangeState(control.topic, + // $FlowFixMe + this.val); } }; return [ @@ -116,6 +118,7 @@ export default class UiItemList extends React.Component { max={control.max || 100} step={control.step || 1} onChange={(_event, next) => { + // $FlowFixMe this.val = next; on(control.delayedApply)(); }}