@@ -335,7 +335,7 @@ export class JsonArray extends Component<JsonArrayProps, JsonArrayState> {
335335 onClick : handleRemove ,
336336 className : 'rejt-minus-menu' ,
337337 style : minus ,
338- 'aria-label' : `remove the array '${ name } '` ,
338+ 'aria-label' : `remove the array '${ String ( name ) } '` ,
339339 } ) ;
340340
341341 return (
@@ -379,15 +379,15 @@ export class JsonArray extends Component<JsonArrayProps, JsonArrayState> {
379379 onClick : this . handleAddMode ,
380380 className : 'rejt-plus-menu' ,
381381 style : plus ,
382- 'aria-label' : `add a new item to the '${ name } ' array` ,
382+ 'aria-label' : `add a new item to the '${ String ( name ) } ' array` ,
383383 } ) ;
384384 const removeItemButton =
385385 minusMenuElement &&
386386 cloneElement ( minusMenuElement , {
387387 onClick : handleRemove ,
388388 className : 'rejt-minus-menu' ,
389389 style : minus ,
390- 'aria-label' : `remove the array '${ name } '` ,
390+ 'aria-label' : `remove the array '${ String ( name ) } '` ,
391391 } ) ;
392392
393393 const onlyValue = true ;
@@ -670,8 +670,8 @@ export class JsonFunctionValue extends Component<JsonFunctionValueProps, JsonFun
670670 onClick : handleRemove ,
671671 className : 'rejt-minus-menu' ,
672672 style : style . minus ,
673- 'aria-label' : `remove the function '${ name } '${
674- parentPropertyName ? ` from '${ parentPropertyName } '` : ''
673+ 'aria-label' : `remove the function '${ String ( name ) } '${
674+ String ( parentPropertyName ) ? ` from '${ String ( parentPropertyName ) } '` : ''
675675 } `,
676676 } ) ;
677677 minusElement = resultOnlyResult ? null : minusMenuLayout ;
@@ -1222,7 +1222,7 @@ export class JsonObject extends Component<JsonObjectProps, JsonObjectState> {
12221222 onClick : handleRemove ,
12231223 className : 'rejt-minus-menu' ,
12241224 style : minus ,
1225- 'aria-label' : `remove the object '${ name } '` ,
1225+ 'aria-label' : `remove the object '${ String ( name ) } '` ,
12261226 } ) ;
12271227
12281228 return (
@@ -1268,15 +1268,15 @@ export class JsonObject extends Component<JsonObjectProps, JsonObjectState> {
12681268 onClick : this . handleAddMode ,
12691269 className : 'rejt-plus-menu' ,
12701270 style : plus ,
1271- 'aria-label' : `add a new property to the object '${ name } '` ,
1271+ 'aria-label' : `add a new property to the object '${ String ( name ) } '` ,
12721272 } ) ;
12731273 const removeItemButton =
12741274 minusMenuElement &&
12751275 cloneElement ( minusMenuElement , {
12761276 onClick : handleRemove ,
12771277 className : 'rejt-minus-menu' ,
12781278 style : minus ,
1279- 'aria-label' : `remove the object '${ name } '` ,
1279+ 'aria-label' : `remove the object '${ String ( name ) } '` ,
12801280 } ) ;
12811281
12821282 const list = keyList . map ( ( key ) => (
@@ -1540,8 +1540,8 @@ export class JsonValue extends Component<JsonValueProps, JsonValueState> {
15401540 onClick : handleRemove ,
15411541 className : 'rejt-minus-menu' ,
15421542 style : style . minus ,
1543- 'aria-label' : `remove the property '${ name } ' with value '${ originalValue } '${
1544- parentPropertyName ? ` from '${ parentPropertyName } '` : ''
1543+ 'aria-label' : `remove the property '${ String ( name ) } ' with value '${ String ( originalValue ) } '${
1544+ String ( parentPropertyName ) ? ` from '${ String ( parentPropertyName ) } '` : ''
15451545 } `,
15461546 } ) ;
15471547
0 commit comments