Make setMode false on mark is set

This commit is contained in:
Shin'ya Ueoka 2018-10-11 17:02:17 +09:00
parent 76a2250291
commit c89b92d9bb

View file

@ -17,7 +17,7 @@ export default function reducer(state = defaultState, action = {}) {
case actions.MARK_SET_LOCAL: { case actions.MARK_SET_LOCAL: {
let marks = { ...state.marks }; let marks = { ...state.marks };
marks[action.key] = { y: action.y }; marks[action.key] = { y: action.y };
return { ...state, marks }; return { ...state, setMode: false, marks };
} }
default: default:
return state; return state;