diff --git a/packages/server/src/utilities/rowProcessor/bbReferenceProcessor.ts b/packages/server/src/utilities/rowProcessor/bbReferenceProcessor.ts index c7b8998bad..a51ac32da7 100644 --- a/packages/server/src/utilities/rowProcessor/bbReferenceProcessor.ts +++ b/packages/server/src/utilities/rowProcessor/bbReferenceProcessor.ts @@ -68,8 +68,16 @@ export async function processOutputBBReferences( return value || undefined } - const ids = - typeof value === "string" ? value.split(",").filter(id => !!id) : value + let ids: string[] = [] + if (typeof value === "string") { + try { + ids = JSON.parse(value) + } catch (err) { + ids = value.split(",").filter(id => !!id) + } + } else if (Array.isArray(value)) { + ids = value + } switch (subtype) { case FieldSubtype.USER: