Removed scope from movie scene query, fixes movie scenes missing.
This commit is contained in:
parent
4b93ae788f
commit
4c5e8894ef
|
@ -155,6 +155,22 @@
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
<div
|
||||||
|
v-if="scenes.length > 0"
|
||||||
|
class="section"
|
||||||
|
>
|
||||||
|
<h3 class="heading">Scenes</h3>
|
||||||
|
|
||||||
|
<ul class="scenes nolist">
|
||||||
|
<li
|
||||||
|
v-for="scene in scenes"
|
||||||
|
:key="`scene-${scene.id}`"
|
||||||
|
>
|
||||||
|
<SceneTile :scene="scene" />
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
v-if="movie.description"
|
v-if="movie.description"
|
||||||
class="section"
|
class="section"
|
||||||
|
@ -190,19 +206,6 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="section ">
|
|
||||||
<h3 class="heading">Scenes</h3>
|
|
||||||
|
|
||||||
<ul class="scenes nolist">
|
|
||||||
<li
|
|
||||||
v-for="scene in scenes"
|
|
||||||
:key="`scene-${scene.id}`"
|
|
||||||
>
|
|
||||||
<sceneTile :scene="scene" />
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="section details">
|
<div class="section details">
|
||||||
<div class="detail">
|
<div class="detail">
|
||||||
<h3 class="heading">Added</h3>
|
<h3 class="heading">Added</h3>
|
||||||
|
|
|
@ -21,7 +21,6 @@ export async function onBeforeRender(pageContext) {
|
||||||
fetchMoviesById([Number(pageContext.routeParams.movieId)], pageContext.user),
|
fetchMoviesById([Number(pageContext.routeParams.movieId)], pageContext.user),
|
||||||
fetchScenes(await curateScenesQuery({
|
fetchScenes(await curateScenesQuery({
|
||||||
...pageContext.urlQuery,
|
...pageContext.urlQuery,
|
||||||
scope: pageContext.routeParams.scope || 'latest',
|
|
||||||
movieId: Number(pageContext.routeParams.movieId),
|
movieId: Number(pageContext.routeParams.movieId),
|
||||||
}), {
|
}), {
|
||||||
page: Number(pageContext.routeParams.page) || 1,
|
page: Number(pageContext.routeParams.page) || 1,
|
||||||
|
|
Loading…
Reference in New Issue