From 0ea40f391dc5756cd905366df7a567277aa63c1d Mon Sep 17 00:00:00 2001 From: Olayinka Azeez Date: Tue, 5 Mar 2024 13:18:41 +0100 Subject: [PATCH] stringify filters query params --- frontend/js/store/modules/buckets.js | 2 +- frontend/js/store/modules/datatable.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/js/store/modules/buckets.js b/frontend/js/store/modules/buckets.js index 4277bc953..d91c0dac6 100644 --- a/frontend/js/store/modules/buckets.js +++ b/frontend/js/store/modules/buckets.js @@ -66,7 +66,7 @@ const actions = { content_type: state.dataSources.selected.value, page: state.page, offset: state.offset, - filter: state.filter + filter: JSON.stringify(state.filter) }, resp => { commit(BUCKETS.UPDATE_BUCKETS_DATA, resp.source) commit(BUCKETS.UPDATE_BUCKETS_MAX_PAGE, resp.maxPage) diff --git a/frontend/js/store/modules/datatable.js b/frontend/js/store/modules/datatable.js index 54ea670c8..8eb784e65 100644 --- a/frontend/js/store/modules/datatable.js +++ b/frontend/js/store/modules/datatable.js @@ -231,7 +231,7 @@ const actions = { page: state.page, offset: state.offset, columns: getters.visibleColumnsNames, - filter: state.filter + filter: JSON.stringify(state.filter) } api.get(params, function (resp) {