diff --git a/src/views/BrokeringQuery.vue b/src/views/BrokeringQuery.vue index a86123e..fa30e4e 100644 --- a/src/views/BrokeringQuery.vue +++ b/src/views/BrokeringQuery.vue @@ -862,12 +862,12 @@ function findSortDiff(previousSeq: any, updatedSeq: any) { // Updated the keys of the object as there are some cases in which the field is same for both filter and sort options thus causing issue when doing same kind operation (addtion or deletion) of fields seqToUpdate = Object.keys(seqToUpdate).reduce((updatedSeq: any, key) => { - updatedSeq[key + 'sort'] = seqToUpdate[key] + updatedSeq[key + '_sort'] = seqToUpdate[key] return updatedSeq }, {}) seqToRemove = Object.keys(seqToRemove).reduce((updatedSeq: any, key) => { - updatedSeq[key + 'sort'] = seqToRemove[key] + updatedSeq[key + '_sort'] = seqToRemove[key] return updatedSeq }, {}) @@ -906,12 +906,12 @@ function findFilterDiff(previousSeq: any, updatedSeq: any) { // Updated the keys of the object as there are some cases in which the field is same for both filter and sort options thus causing issue when doing same kind operation (addtion or deletion) of fields seqToUpdate = Object.keys(seqToUpdate).reduce((updatedSeq: any, key) => { - updatedSeq[key + 'filter'] = seqToUpdate[key] + updatedSeq[key + '_filter'] = seqToUpdate[key] return updatedSeq }, {}) seqToRemove = Object.keys(seqToRemove).reduce((updatedSeq: any, key) => { - updatedSeq[key + 'filter'] = seqToRemove[key] + updatedSeq[key + '_filter'] = seqToRemove[key] return updatedSeq }, {})