src/providers/DrawProvider/index.js
Function onUpdate
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function onUpdate(e) {
const { data, editType } = e;
dispatch(['SET_FEATURES', data]);
Avoid too many return
statements within this function. Open
Open
return {
...state,
slide: payload,
};