diff --git a/client/actions/agenda.ts b/client/actions/agenda.ts index b1320889b..761abd024 100644 --- a/client/actions/agenda.ts +++ b/client/actions/agenda.ts @@ -3,12 +3,12 @@ import {cloneDeep, pick, get, sortBy, findIndex} from 'lodash'; import {Moment} from 'moment'; import {IEventItem, IPlanningItem, IAgenda} from '../interfaces'; +import {planningApi} from '../superdeskApi'; import {AGENDA, MODALS, EVENTS} from '../constants'; import {getErrorMessage, gettext, planningUtils} from '../utils'; import {planning, showModal, main} from './index'; import {convertStringFields} from '../utils/strings'; -import {planningApi} from "../superdeskApi"; const openAgenda = () => ( (dispatch) => ( diff --git a/client/api/planning.ts b/client/api/planning.ts index 66dbd0b12..845539c55 100644 --- a/client/api/planning.ts +++ b/client/api/planning.ts @@ -34,7 +34,7 @@ function convertPlanningParams(params: ISearchParams): Partial g2_content_type: params.g2_content_type?.qcode, source: cvsToString(params.source, 'id'), coverage_user_id: params.coverage_user_id, - coverage_assignment_status: params.coverage_assignment_status + coverage_assignment_status: params.coverage_assignment_status, priority: arrayToString(params.priority), }; } diff --git a/client/utils/events.ts b/client/utils/events.ts index f3e14449e..0503a3182 100644 --- a/client/utils/events.ts +++ b/client/utils/events.ts @@ -899,7 +899,11 @@ const isEventInRange = ( /* * Groups the events by date */ -function getEventsByDate(events: Array, startDate: moment.Moment, endDate: moment.Moment): Array { +function getEventsByDate( + events: Array, + startDate: moment.Moment, + endDate: moment.Moment +): Array { if ((events?.length ?? 0) === 0) { return []; }