Lucas_Werkmeister_WMDE added a comment.

I think there might be some type confusion. When updating the value, statementview propagates the claim’s qualifiers to the qualifier listview:

this._qualifiers.option( key, value.getClaim().getQualifiers() );

value.getClaim().getQualifiers() is a wikibase.datamodel.SnakList, which has a length and an array of _items, but is not itself an array. But listview seems to expect an array directly, or at least something subscriptable:

for ( var i = 0; i < value.length; i++ ) {
    this._addLiValue( value[ i ] );
}

With the SnakList in value, value[ i ] is undefined.


TASK DETAIL
https://phabricator.wikimedia.org/T176604

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lucas_Werkmeister_WMDE
Cc: Lucas_Werkmeister_WMDE, Aklapper, GoranSMilovanovic, QZanden, Izno, Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to