fix: multiple = false
This commit is contained in:
parent
347c0831f8
commit
8e087840ca
@ -436,7 +436,7 @@ export const obo: IField = {
|
|||||||
'x-component': 'RecordPicker',
|
'x-component': 'RecordPicker',
|
||||||
'x-component-props': {
|
'x-component-props': {
|
||||||
// mode: 'tags',
|
// mode: 'tags',
|
||||||
multiple: true,
|
multiple: false,
|
||||||
fieldNames: {
|
fieldNames: {
|
||||||
label: 'id',
|
label: 'id',
|
||||||
value: 'id',
|
value: 'id',
|
||||||
|
@ -258,6 +258,10 @@ export async function updateSingleAssociation(
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Array.isArray(value)) {
|
||||||
|
throw new Error(`The value of '${key}' cannot be in array format`);
|
||||||
|
}
|
||||||
|
|
||||||
const { context, updateAssociationValues = [], transaction } = options;
|
const { context, updateAssociationValues = [], transaction } = options;
|
||||||
const keys = getKeysByPrefix(updateAssociationValues, key);
|
const keys = getKeysByPrefix(updateAssociationValues, key);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user