diff --git a/lerna.json b/lerna.json index 164bd15b71..c8acec9337 100644 --- a/lerna.json +++ b/lerna.json @@ -1,5 +1,5 @@ { - "version": "2.11.1", + "version": "2.11.3", "npmClient": "yarn", "packages": [ "packages/*" diff --git a/packages/frontend-core/src/components/grid/cells/BBReferenceCell.svelte b/packages/frontend-core/src/components/grid/cells/BBReferenceCell.svelte index be99c9f633..b4168474b0 100644 --- a/packages/frontend-core/src/components/grid/cells/BBReferenceCell.svelte +++ b/packages/frontend-core/src/components/grid/cells/BBReferenceCell.svelte @@ -3,6 +3,8 @@ import RelationshipCell from "./RelationshipCell.svelte" import { FieldSubtype } from "@budibase/types" + export let api + const { API } = getContext("grid") const { subtype } = $$props.schema @@ -17,8 +19,11 @@ throw `Search for '${subtype}' not implemented` } + // As we are overriding the search function from RelationshipCell, we want to map one shape to the expected one for the specific API + const email = Object.values(searchParams.query.string)[0] + const results = await API.searchUsers({ - ...searchParams, + email, }) // Mapping to the expected data within RelationshipCell @@ -31,6 +36,7 @@