Merge pull request #15673 from Budibase/fix-bbreference-picker
Fixing BBReference field
This commit is contained in:
commit
23edcc9cfb
|
@ -108,17 +108,14 @@
|
||||||
filter: SearchFilter[],
|
filter: SearchFilter[],
|
||||||
linkedTableId?: string
|
linkedTableId?: string
|
||||||
) => {
|
) => {
|
||||||
if (!linkedTableId) {
|
|
||||||
return undefined
|
|
||||||
}
|
|
||||||
const datasource =
|
const datasource =
|
||||||
datasourceType === "table"
|
dsType === "table"
|
||||||
? {
|
? {
|
||||||
type: datasourceType,
|
type: dsType,
|
||||||
tableId: fieldSchema?.tableId!,
|
tableId: linkedTableId!,
|
||||||
}
|
}
|
||||||
: {
|
: {
|
||||||
type: datasourceType,
|
type: dsType,
|
||||||
tableId: InternalTable.USER_METADATA,
|
tableId: InternalTable.USER_METADATA,
|
||||||
}
|
}
|
||||||
return fetchData({
|
return fetchData({
|
||||||
|
|
|
@ -117,7 +117,8 @@ export function isSupportedUserSearch(
|
||||||
{ op: BasicOperator.EQUAL, key: "_id" },
|
{ op: BasicOperator.EQUAL, key: "_id" },
|
||||||
{ op: ArrayOperator.ONE_OF, key: "_id" },
|
{ op: ArrayOperator.ONE_OF, key: "_id" },
|
||||||
]
|
]
|
||||||
for (const [key, operation] of Object.entries(query)) {
|
const { allOr, onEmptyFilter, ...filters } = query
|
||||||
|
for (const [key, operation] of Object.entries(filters)) {
|
||||||
if (typeof operation !== "object") {
|
if (typeof operation !== "object") {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue