mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-11 16:59:25 +00:00
ESLint: Fix warnings
Change-Id: I62b6f011a1068efd637a09388a8b12b92750068e
This commit is contained in:
parent
4993f74649
commit
0d7d717253
|
@ -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