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[],
|
||||
linkedTableId?: string
|
||||
) => {
|
||||
if (!linkedTableId) {
|
||||
return undefined
|
||||
}
|
||||
const datasource =
|
||||
datasourceType === "table"
|
||||
dsType === "table"
|
||||
? {
|
||||
type: datasourceType,
|
||||
tableId: fieldSchema?.tableId!,
|
||||
type: dsType,
|
||||
tableId: linkedTableId!,
|
||||
}
|
||||
: {
|
||||
type: datasourceType,
|
||||
type: dsType,
|
||||
tableId: InternalTable.USER_METADATA,
|
||||
}
|
||||
return fetchData({
|
||||
|
|
|
@ -117,7 +117,8 @@ export function isSupportedUserSearch(
|
|||
{ op: BasicOperator.EQUAL, 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") {
|
||||
return false
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue