Make setMode false on mark is set

jh-changes
Shin'ya Ueoka 6 years ago
parent 76a2250291
commit c89b92d9bb
  1. 2
      src/content/reducers/mark.js

@ -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;