diff --git a/lib/OrganizationsArrayDisplay/OrganizationsArrayDisplay.js b/lib/OrganizationsArrayDisplay/OrganizationsArrayDisplay.js index 1e3506d1..69ceca4e 100644 --- a/lib/OrganizationsArrayDisplay/OrganizationsArrayDisplay.js +++ b/lib/OrganizationsArrayDisplay/OrganizationsArrayDisplay.js @@ -3,10 +3,10 @@ import React from 'react'; import { Row } from '@folio/stripes/components'; const OrganizationsArrayDisplay = ({ orgs }) => { - return orgs.map(record => { - const name = record.org?.name ? `${record.org.name}, ` : ''; + return orgs.map((record, index) => { + const name = record.org?.name ? `${record.org.name}${index !== orgs.length - 1 ? ', ' : ''}` : ''; return ( - + {name} );