front/src/actions/calendar.js
Function createActions
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function createActions(store) {
const actions = {
async getEventsInRange(state, from, to) {
store.setState({
DeviceGetStatus: CalendarGetEventsStatus.Getting
Function getEventsInRange
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async getEventsInRange(state, from, to) {
store.setState({
DeviceGetStatus: CalendarGetEventsStatus.Getting
});
try {