Merge "ESLint: Fix warnings"

This commit is contained in:
jenkins-bot 2024-09-17 07:29:44 +00:00 committed by Gerrit Code Review
commit 4ab9e38274
2 changed files with 4 additions and 6 deletions

View file

@ -10,8 +10,6 @@
],
"rules": {
"max-len": "off",
"no-var": "off",
"no-mixed-spaces-and-tabs": "warn",
"implicit-arrow-linebreak": "warn"
"no-var": "off"
}
}

View file

@ -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' ) {