@@ -45,10 +45,11 @@ function PosterSingle({ configurationChange, feedSource, configuration }) {
4545 } = configuration ;
4646
4747 const { admin } = feedSource ;
48+ const [ firstAdminEntry ] = admin ;
4849
49- const searchEndpoint = admin [ 0 ] . endpointSearch ?? null ;
50- const optionsEndpoint = admin [ 0 ] . endpointOption ?? null ;
51- const entityEndpoint = admin [ 0 ] . endpointEntity ?? null ;
50+ const searchEndpoint = firstAdminEntry . endpointSearch ?? null ;
51+ const optionsEndpoint = firstAdminEntry . endpointOption ?? null ;
52+ const entityEndpoint = firstAdminEntry . endpointEntity ?? null ;
5253
5354 const removeSingleSelected = ( ) => {
5455 configurationChange ( {
@@ -110,7 +111,7 @@ function PosterSingle({ configurationChange, feedSource, configuration }) {
110111 if ( occurrenceIds . length === 1 ) {
111112 configChange . targets . push ( {
112113 id : "singleSelectedOccurrence" ,
113- value : occurrenceIds [ 0 ] . entityId ,
114+ value : occurrenceIds [ 0 ] ,
114115 } ) ;
115116 }
116117
@@ -445,7 +446,13 @@ function PosterSingle({ configurationChange, feedSource, configuration }) {
445446 </ thead >
446447 < tbody >
447448 { singleSearchEvents ?. map (
448- ( entityId , title , imageUrls , organizer , occurrences ) => (
449+ ( {
450+ entityId,
451+ title,
452+ imageUrls,
453+ organizer,
454+ occurrences,
455+ } ) => (
449456 < tr key = { entityId } >
450457 < td >
451458 { imageUrls ?. small && (
@@ -459,7 +466,7 @@ function PosterSingle({ configurationChange, feedSource, configuration }) {
459466 < td >
460467 < b > { title } </ b >
461468 < br />
462- { organizer . name }
469+ { organizer ? .name }
463470 </ td >
464471 < td >
465472 { occurrences ?. length > 0 &&
0 commit comments