Merge branch 'v3-ui' of github.com:Budibase/budibase into view-calculation-ui

This commit is contained in:
Andrew Kingston 2024-10-08 14:30:41 +01:00
commit 7a0b0ccb34
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ import { dataFilters } from "@budibase/shared-core"
function convertToSearchFilters(view) {
// convert from SearchFilterGroup type
if (view.query) {
if (view?.query) {
view.queryUI = view.query
view.query = dataFilters.buildQuery(view.query)
}
@ -13,7 +13,7 @@ function convertToSearchFilters(view) {
}
function convertToSearchFilterGroup(view) {
if (view.queryUI) {
if (view?.queryUI) {
view.query = view.queryUI
delete view.queryUI
}