From 8cbe003b0184fc87f120ff388c2a8d0090309e17 Mon Sep 17 00:00:00 2001 From: Jon Hardie Date: Tue, 19 Oct 2021 09:25:48 +1300 Subject: [PATCH] Fix track export options indexing error --- package.json | 2 +- src/CptvPlayer.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(