Improves check for mutivalued metadata update in the form item.
This commit is contained in:
parent
c4ea79c406
commit
5394bc810c
|
@ -286,7 +286,6 @@
|
|||
this.performValueChange();
|
||||
}, 800),
|
||||
performValueChange() {
|
||||
|
||||
// Compound metadata do not emit values, only their children.
|
||||
if (this.metadatumComponent == 'tainacan-compound')
|
||||
return;
|
||||
|
@ -326,7 +325,10 @@
|
|||
|
||||
// A single term value
|
||||
case 'Object':
|
||||
if (this.values.length && this.values[0] == this.itemMetadatum.value.id)
|
||||
if (
|
||||
( Array.isArray(this.values) && this.values.length && this.values[0] == this.itemMetadatum.value.id ) ||
|
||||
( this.values == this.itemMetadatum.value.id )
|
||||
)
|
||||
return;
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in New Issue