diff --git a/modules/ticket/front/index/index.js b/modules/ticket/front/index/index.js index 5d760b834..8c9d22fff 100644 --- a/modules/ticket/front/index/index.js +++ b/modules/ticket/front/index/index.js @@ -12,7 +12,6 @@ export default class Controller { this.goToTurns('ticket.weekly'); }, name: 'Turns', always: true}, ]; - this.filter = {}; if (!$stateParams.q) { let today = new Date(); @@ -25,7 +24,7 @@ export default class Controller { sixDays.setDate(today.getDate() + 6); sixDays.setHours(23, 59, 59, 999); - this.filter = Object.assign(this.filter, {myTeam: true, from: today, to: sixDays}); + this.filter = Object.assign({}, {myTeam: true, from: today, to: sixDays}); } } @@ -35,6 +34,7 @@ export default class Controller { } onSearch(params) { + console.log(params); if (params) this.$.model.applyFilter(null, params); else