mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-23 23:43:54 +00:00
Merge "ESLint: Fix warnings"
This commit is contained in:
commit
4ab9e38274
|
@ -10,8 +10,6 @@
|
|||
],
|
||||
"rules": {
|
||||
"max-len": "off",
|
||||
"no-var": "off",
|
||||
"no-mixed-spaces-and-tabs": "warn",
|
||||
"implicit-arrow-linebreak": "warn"
|
||||
"no-var": "off"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1087,10 +1087,10 @@ Dialog.prototype.changeParamPropertyInput = function ( paramKey, propName, value
|
|||
break;
|
||||
case 'array':
|
||||
value = value || [];
|
||||
propInput.setValue( value.map( ( v ) =>
|
||||
propInput.setValue( value.map(
|
||||
// TagMultiselectWidget accepts nothing but strings or objects with a .data property
|
||||
v && v.data ? v : String( v )
|
||||
) );
|
||||
( v ) => v && v.data ? v : String( v )
|
||||
) );
|
||||
break;
|
||||
default:
|
||||
if ( typeof value === 'object' ) {
|
||||
|
|
Loading…
Reference in a new issue