diff --git a/packages/builder/src/stores/builder/viewsV2.js b/packages/builder/src/stores/builder/viewsV2.js index a3ceb623a9..0c7a03414e 100644 --- a/packages/builder/src/stores/builder/viewsV2.js +++ b/packages/builder/src/stores/builder/viewsV2.js @@ -15,6 +15,7 @@ function convertToSearchFilters(view) { function convertToSearchFilterGroup(view) { if (view.queryUI) { view.query = view.queryUI + delete view.queryUI } return view } diff --git a/packages/frontend-core/src/components/grid/stores/datasources/viewV2.js b/packages/frontend-core/src/components/grid/stores/datasources/viewV2.js index 13c46f9d34..8e4321be96 100644 --- a/packages/frontend-core/src/components/grid/stores/datasources/viewV2.js +++ b/packages/frontend-core/src/components/grid/stores/datasources/viewV2.js @@ -135,7 +135,7 @@ export const initialise = context => { } // Only override filter state if we don't have an initial filter if (!get(initialFilter)) { - filter.set($definition.query) + filter.set($definition.queryUI || $definition.query) } }) )