diff --git a/Makefile b/Makefile index 9f60a3d..3c76bc7 100644 --- a/Makefile +++ b/Makefile @@ -26,5 +26,7 @@ clean: rm -rf release rm -rf vendor rm -rf bin + rm -rf client/node_modules + rm -rf client/dist/* .PHONY: lint watch build vendor tidy release \ No newline at end of file diff --git a/client/src/store/reducers/kanboards.js b/client/src/store/reducers/kanboards.js index f193ce6..036d82e 100644 --- a/client/src/store/reducers/kanboards.js +++ b/client/src/store/reducers/kanboards.js @@ -58,7 +58,6 @@ function handleMoveCard(state, action) { } else { fromCards.splice(fromPosition, 1); fromCards.splice(toPosition, 0, card); - console.log(fromCards) } return { diff --git a/client/src/store/sagas/kanboards.js b/client/src/store/sagas/kanboards.js index 3dce6ff..818f94b 100644 --- a/client/src/store/sagas/kanboards.js +++ b/client/src/store/sagas/kanboards.js @@ -10,6 +10,8 @@ export function* moveCardSaga(action) { toPosition, } = action; + if (fromLaneID === toLaneID) return; + const { board, kanboard} = yield select(state => { return { kanboard: state.kanboards.byID[boardID],