Fix deletions
This commit is contained in:
parent
1fb3c4b3c3
commit
9afa334501
|
@ -6,7 +6,7 @@ import { InvalidBBRefError } from "./errors"
|
||||||
export async function processInputBBReferences(
|
export async function processInputBBReferences(
|
||||||
value: string | string[] | { _id: string } | { _id: string }[],
|
value: string | string[] | { _id: string } | { _id: string }[],
|
||||||
subtype: FieldSubtype
|
subtype: FieldSubtype
|
||||||
): Promise<string | undefined> {
|
): Promise<string | null> {
|
||||||
const referenceIds: string[] = []
|
const referenceIds: string[] = []
|
||||||
|
|
||||||
if (Array.isArray(value)) {
|
if (Array.isArray(value)) {
|
||||||
|
@ -39,7 +39,7 @@ export async function processInputBBReferences(
|
||||||
throw utils.unreachable(subtype)
|
throw utils.unreachable(subtype)
|
||||||
}
|
}
|
||||||
|
|
||||||
return referenceIds.join(",") || undefined
|
return referenceIds.join(",") || null
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function processOutputBBReferences(
|
export async function processOutputBBReferences(
|
||||||
|
|
Loading…
Reference in New Issue