Browse Source
Merge pull request #3311 from Budibase/block-search-improvements
Improve block searching
master
Andrew Kingston
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
4 additions and
2 deletions
-
packages/client/src/components/app/blocks/CardListWithSearch.svelte
-
packages/client/src/components/app/blocks/TableWithSearch.svelte
|
|
|
@ -49,7 +49,7 @@ |
|
|
|
columns?.forEach(column => { |
|
|
|
enrichedFilter.push({ |
|
|
|
field: column.name, |
|
|
|
operator: "equal", |
|
|
|
operator: column.type === "string" ? "string" : "equal", |
|
|
|
type: "string", |
|
|
|
valueType: "Binding", |
|
|
|
value: `{{ [${formId}].[${column.name}] }}`, |
|
|
|
@ -68,6 +68,7 @@ |
|
|
|
enrichedColumns.push({ |
|
|
|
name: column, |
|
|
|
componentType, |
|
|
|
type: schemaType, |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
@ -48,7 +48,7 @@ |
|
|
|
columns?.forEach(column => { |
|
|
|
enrichedFilter.push({ |
|
|
|
field: column.name, |
|
|
|
operator: "equal", |
|
|
|
operator: column.type === "string" ? "string" : "equal", |
|
|
|
type: "string", |
|
|
|
valueType: "Binding", |
|
|
|
value: `{{ [${formId}].[${column.name}] }}`, |
|
|
|
@ -67,6 +67,7 @@ |
|
|
|
enrichedColumns.push({ |
|
|
|
name: column, |
|
|
|
componentType, |
|
|
|
type: schemaType, |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
|