Merge pull request #6426 from Budibase/fix/internal-search-spaces
Replace all column spaces with underscores when performing internal searches
This commit is contained in:
commit
2aeba10b4d
|
@ -145,7 +145,7 @@ class QueryBuilder {
|
||||||
|
|
||||||
function build(structure, queryFn) {
|
function build(structure, queryFn) {
|
||||||
for (let [key, value] of Object.entries(structure)) {
|
for (let [key, value] of Object.entries(structure)) {
|
||||||
key = builder.preprocess(key.replace(/ /, "_"), {
|
key = builder.preprocess(key.replace(/ /g, "_"), {
|
||||||
escape: true,
|
escape: true,
|
||||||
})
|
})
|
||||||
const expression = queryFn(key, value)
|
const expression = queryFn(key, value)
|
||||||
|
|
Loading…
Reference in New Issue