Skip to content

Commit

Permalink
chore: fix player UIConfs initialization logic
Browse files Browse the repository at this point in the history
  • Loading branch information
amirch1 committed May 12, 2022
1 parent 45921ca commit 55ade58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/shared/services/app.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ export class AppService implements OnDestroy {
.pipe(map(responses => {
const [userResponse, roleResponse, permissionsResponse, currentPermissionsResponse, partnerResponse, playersListResponse] = responses;
const initPlayers = () => {
if (playersListResponse) {
if (playersListResponse && playersListResponse.result) {
const players: KalturaUiConf[] = playersListResponse.result.objects || [];
const v2UIConf: KalturaUiConf = players.find(player => player.tags.indexOf('AnalyticsV2_v' + analyticsConfig.appVersion) > -1);
const v7UIConf: KalturaUiConf = players.find(player => player.tags.indexOf('AnalyticsV7_v' + analyticsConfig.appVersion) > -1);
Expand Down

0 comments on commit 55ade58

Please sign in to comment.