diff --git a/package.json b/package.json index bcb9f38..a655621 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cptv-player-vue", - "version": "1.2.6", + "version": "1.2.7", "scripts": { "serve": "vue-cli-service serve", "build": "vue-cli-service build --target lib --name CptvPlayerVue ./src/CptvPlayer.vue", diff --git a/src/CptvPlayer.vue b/src/CptvPlayer.vue index e3afeab..931e35f 100644 --- a/src/CptvPlayer.vue +++ b/src/CptvPlayer.vue @@ -1594,7 +1594,7 @@ export default class CptvPlayerComponent extends Vue { if (this.currentTrack && this.currentTrack.trackId === Number(trackId)) { if ( !trackExportOptions || - trackExportOptions[Number(trackId)].displayInExport + trackExportOptions.find((options) => options.trackId === Number(trackId))?.displayInExport ) { const box = trackBox as TrackBox; this.drawRectWithText(