@@ -372,8 +372,8 @@ function ScopeForm({ scope, scripts, attributes, handleSubmit }) {
372
372
< FormGroup row >
373
373
< GluuLabel label = "fields.associatedClients" size = { 4 } />
374
374
< Col sm = { 8 } >
375
- { client . map ( ( item ) => (
376
- < div >
375
+ { client . map ( ( item , key ) => (
376
+ < div key = { 'uma-client' + key } >
377
377
< a
378
378
onClick = { ( ) =>
379
379
goToClientViewPage ( item . inum , item )
@@ -383,7 +383,7 @@ function ScopeForm({ scope, scripts, attributes, handleSubmit }) {
383
383
cursor : 'pointer' ,
384
384
} }
385
385
>
386
- { item . inum }
386
+ { item . displayName ? item . displayName : item . inum }
387
387
</ a >
388
388
</ div >
389
389
) ) }
@@ -434,18 +434,21 @@ function ScopeForm({ scope, scripts, attributes, handleSubmit }) {
434
434
size = { 4 }
435
435
/>
436
436
< Col sm = { 8 } >
437
- < div >
438
- { scope . attributes . spontaneousClientId }
439
- < IconButton
440
- onClick = { ( ) =>
441
- goToClientViewPage (
442
- scope . attributes . spontaneousClientId ,
443
- )
444
- }
445
- >
446
- < Visibility />
447
- </ IconButton >
448
- </ div >
437
+ { client . map ( ( item , key ) => (
438
+ < div key = { 'spontaneous-client' + key } >
439
+ < a
440
+ onClick = { ( ) =>
441
+ goToClientViewPage ( item . inum , item )
442
+ }
443
+ style = { {
444
+ textDecoration : 'underline' ,
445
+ cursor : 'pointer' ,
446
+ } }
447
+ >
448
+ { item . displayName ? item . displayName : item . inum }
449
+ </ a >
450
+ </ div >
451
+ ) ) }
449
452
</ Col >
450
453
</ FormGroup >
451
454
</ GluuTooltip >
@@ -475,24 +478,7 @@ function ScopeForm({ scope, scripts, attributes, handleSubmit }) {
475
478
</ Col >
476
479
</ FormGroup >
477
480
</ GluuTooltip >
478
- < FormGroup row >
479
- < GluuLabel label = "fields.associatedClients" size = { 4 } />
480
- < Col sm = { 8 } >
481
- { client . map ( ( item ) => (
482
- < div >
483
- < a
484
- onClick = { ( ) => goToClientViewPage ( item . inum , item ) }
485
- style = { {
486
- textDecoration : 'underline' ,
487
- cursor : 'pointer' ,
488
- } }
489
- >
490
- { item . inum }
491
- </ a >
492
- </ div >
493
- ) ) }
494
- </ Col >
495
- </ FormGroup >
481
+
496
482
< FormGroup row >
497
483
< GluuLabel label = "fields.creationDate" size = { 4 } />
498
484
< Col sm = { 8 } >
0 commit comments