@@ -161,14 +161,16 @@ function ScreenManager({
161161 function mapPlaylistsWithRegion ( playlists , regions ) {
162162 const returnArray = [ ] ;
163163 const regionIds = regions . map ( ( r ) =>
164- typeof r === "string" ? idFromUrl ( r , 1 ) : idFromUrl ( r [ "@id" ] )
164+ typeof r === "string" ? idFromUrl ( r , 1 ) : idFromUrl ( r [ "@id" ] ) ,
165165 ) ;
166166
167167 // The playlists all have a regionId, the following creates a unique list of relevant regions If there are not
168168 // playlists, then an empty playlist is to be saved per region
169169 let playlistRegions = [ ] ;
170170 if ( playlists ?. length > 0 ) {
171- playlistRegions = [ ...new Set ( playlists . map ( ( { region } ) => idFromUrl ( region ) ) ) ] ;
171+ playlistRegions = [
172+ ...new Set ( playlists . map ( ( { region } ) => idFromUrl ( region ) ) ) ,
173+ ] ;
172174 }
173175
174176 // Then the playlists are mapped by region Looping through the regions that have a playlist connected...
@@ -244,7 +246,10 @@ function ScreenManager({
244246 resolution : getResolution ( localFormStateObject ) ,
245247 groups : mapGroups ( localFormStateObject ) ,
246248 orientation : getOrientation ( localFormStateObject ) ,
247- regions : mapPlaylistsWithRegion ( localFormStateObject . playlists , localFormStateObject . regions ) ,
249+ regions : mapPlaylistsWithRegion (
250+ localFormStateObject . playlists ,
251+ localFormStateObject . regions ,
252+ ) ,
248253 } ) ,
249254 } ;
250255
0 commit comments