ESLint: Fix warnings

Change-Id: I62b6f011a1068efd637a09388a8b12b92750068e
This commit is contained in:
Ed Sanders 2024-09-16 15:54:00 +01:00
parent 4993f74649
commit 0d7d717253
2 changed files with 4 additions and 6 deletions

View file

@ -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"
} }
} }

View file

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