diff --git a/src/containers/target-pane.jsx b/src/containers/target-pane.jsx index a95c1980963f2c3ff5a5be19f6c3f78e55bde72c..6ee53ac19a0b9700341935c1422258600f6b7991 100644 --- a/src/containers/target-pane.jsx +++ b/src/containers/target-pane.jsx @@ -271,8 +271,8 @@ const mapDispatchToProps = dispatch => ({ dispatchUpdateRestore: restoreState => { dispatch(setRestore(restoreState)); }, - onHighlightTarget: (id, time) => { - dispatch(highlightTarget(id, time)); + onHighlightTarget: id => { + dispatch(highlightTarget(id)); } }); diff --git a/src/reducers/targets.js b/src/reducers/targets.js index 58805bce6fd82ae3a150bbce85c829ddd7970d05..17a73f7d88f350e65ee44530ad8de6ced6521df8 100644 --- a/src/reducers/targets.js +++ b/src/reducers/targets.js @@ -45,11 +45,11 @@ const updateTargets = function (targetList, editingTarget) { } }; }; -const highlightTarget = function (targetId, updateTime) { +const highlightTarget = function (targetId) { return { type: HIGHLIGHT_TARGET, targetId: targetId, - updateTime: updateTime + updateTime: Date.now() }; }; export {