From 07cb39c756dcff888a463563c8904f00dfb11210 Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Sat, 29 Jan 2022 23:39:12 +0100 Subject: [PATCH] Fixed movie cover index in GraphQL query. --- assets/components/releases/release.vue | 2 +- assets/js/fragments.js | 2 +- assets/js/releases/actions.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/components/releases/release.vue b/assets/components/releases/release.vue index ebc7ab0f..3c530249 100644 --- a/assets/components/releases/release.vue +++ b/assets/components/releases/release.vue @@ -278,7 +278,7 @@ function bannerBackground() { function pageTitle() { return this.release && (this.release.title - || (this.release.actors.length > 0 ? `${this.release.actors.map(actor => actor.name).join(', ')} for ${this.release.entity.name}` : null)); + || (this.release.actors.length > 0 ? `${this.release.actors.map((actor) => actor.name).join(', ')} for ${this.release.entity.name}` : null)); } function showAlbum() { diff --git a/assets/js/fragments.js b/assets/js/fragments.js index 0d731810..880c555e 100644 --- a/assets/js/fragments.js +++ b/assets/js/fragments.js @@ -516,7 +516,7 @@ const releaseFragment = ` id title slug - covers: moviesCovers { + covers: moviesCovers(orderBy: MEDIA_BY_MEDIA_ID__INDEX_ASC) { media { id index diff --git a/assets/js/releases/actions.js b/assets/js/releases/actions.js index 4edf5dff..bf337692 100644 --- a/assets/js/releases/actions.js +++ b/assets/js/releases/actions.js @@ -191,7 +191,7 @@ function initReleasesActions(store, router) { isS3 } } - covers: moviesCovers { + covers: moviesCovers(orderBy: MEDIA_BY_MEDIA_ID__INDEX_ASC) { media { id path