mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-13 17:57:11 +00:00
ESLint: Fix warnings
Change-Id: I62b6f011a1068efd637a09388a8b12b92750068e
This commit is contained in:
parent
4993f74649
commit
0d7d717253
|
@ -10,8 +10,6 @@
|
||||||
],
|
],
|
||||||
"rules": {
|
"rules": {
|
||||||
"max-len": "off",
|
"max-len": "off",
|
||||||
"no-var": "off",
|
"no-var": "off"
|
||||||
"no-mixed-spaces-and-tabs": "warn",
|
|
||||||
"implicit-arrow-linebreak": "warn"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1087,10 +1087,10 @@ Dialog.prototype.changeParamPropertyInput = function ( paramKey, propName, value
|
||||||
break;
|
break;
|
||||||
case 'array':
|
case 'array':
|
||||||
value = value || [];
|
value = value || [];
|
||||||
propInput.setValue( value.map( ( v ) =>
|
propInput.setValue( value.map(
|
||||||
// TagMultiselectWidget accepts nothing but strings or objects with a .data property
|
// 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;
|
break;
|
||||||
default:
|
default:
|
||||||
if ( typeof value === 'object' ) {
|
if ( typeof value === 'object' ) {
|
||||||
|
|
Loading…
Reference in a new issue