1
0
Fork 0
mirror of synced 2024-07-20 21:55:54 +12:00

Fix deletion

This commit is contained in:
Adria Navarro 2023-09-15 19:06:06 +02:00
parent 7f6ef551c9
commit ead2a2795e
2 changed files with 2 additions and 2 deletions

View file

@ -52,7 +52,7 @@ export async function processOutputBBReferences(
switch (subtype) {
case FieldSubtype.USER:
for (const id of value.split(",")) {
for (const id of value.split(",").filter(x => !!x)) {
try {
const user = await cache.user.getUser(id)
if (user) {

View file

@ -229,7 +229,7 @@ export async function outputProcessing<T extends Row[] | Row>(
}
} else if (column.type == FieldTypes.BB_REFERENCE) {
for (let row of enriched) {
if (!row[property]) {
if (!row[property] == null) {
continue
}
row[property] = await processOutputBBReferences(