diff --git a/src/app/components/chord-view/chord-view.component.ts b/src/app/components/chord-view/chord-view.component.ts index 4b46f7e..4a5858d 100644 --- a/src/app/components/chord-view/chord-view.component.ts +++ b/src/app/components/chord-view/chord-view.component.ts @@ -48,7 +48,6 @@ export class ChordViewComponent extends StageViewComponent { } setNewSlides(slides: Slide[], currentSlide: number): void { - super.setNewSlides(slides, currentSlide); if (this.openlpService.assertApiVersionExact(2, 2)) { // API Version 2.2 released on OpenLP 3.0.2 contains a bug on which 'selected' is not set correctly // on Transponse Service Item response. @@ -56,6 +55,7 @@ export class ChordViewComponent extends StageViewComponent { slides[currentSlide].selected = true; } } + super.setNewSlides(slides, currentSlide); // if this song is already known if (this.songTransposeMap.has(this.serviceItem.id)) { const transposeLevel = this.songTransposeMap.get(this.serviceItem.id); diff --git a/src/app/openlp.service.ts b/src/app/openlp.service.ts index 5f4a23c..0cafd06 100644 --- a/src/app/openlp.service.ts +++ b/src/app/openlp.service.ts @@ -76,7 +76,7 @@ export class OpenLPService { } assertApiVersionMinimum(version: number, revision: number) { - return version >= this.apiVersion && revision >= this.apiRevision; + return this.apiVersion >= version && this.apiRevision >= revision; } setAuthToken(token: string): void {