Fix tests
This commit is contained in:
parent
6c1b3a0d2d
commit
74ac68d72d
|
@ -164,11 +164,12 @@ export async function inputProcessing(
|
||||||
delete clonedRow[key].url
|
delete clonedRow[key].url
|
||||||
}
|
}
|
||||||
} else if (
|
} else if (
|
||||||
field.type === FieldType.BB_REFERENCE_SINGLE ||
|
value &&
|
||||||
helpers.schema.isDeprecatedSingleUserColumn(field)
|
(field.type === FieldType.BB_REFERENCE_SINGLE ||
|
||||||
|
helpers.schema.isDeprecatedSingleUserColumn(field))
|
||||||
) {
|
) {
|
||||||
clonedRow[key] = await processInputBBReference(value, field.subtype)
|
clonedRow[key] = await processInputBBReference(value, field.subtype)
|
||||||
} else if (field.type === FieldType.BB_REFERENCE) {
|
} else if (value && field.type === FieldType.BB_REFERENCE) {
|
||||||
clonedRow[key] = await processInputBBReferences(value, field.subtype)
|
clonedRow[key] = await processInputBBReferences(value, field.subtype)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -102,7 +102,7 @@ describe("rowProcessor - inputProcessing", () => {
|
||||||
name: "user",
|
name: "user",
|
||||||
constraints: {
|
constraints: {
|
||||||
presence: true,
|
presence: true,
|
||||||
type: "string",
|
type: "array",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -154,7 +154,7 @@ describe("rowProcessor - inputProcessing", () => {
|
||||||
name: "user",
|
name: "user",
|
||||||
constraints: {
|
constraints: {
|
||||||
presence: false,
|
presence: false,
|
||||||
type: "string",
|
type: "array",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -196,7 +196,7 @@ describe("rowProcessor - inputProcessing", () => {
|
||||||
name: "user",
|
name: "user",
|
||||||
constraints: {
|
constraints: {
|
||||||
presence: false,
|
presence: false,
|
||||||
type: "string",
|
type: "array",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue