Fixed summary failing if scene is not part of movie.
This commit is contained in:
parent
73141a4802
commit
db0120dcc8
|
@ -285,8 +285,6 @@ const { scene } = pageProps;
|
|||
const playing = ref(false);
|
||||
const paused = ref(false);
|
||||
|
||||
console.log(scene);
|
||||
|
||||
const poster = computed(() => {
|
||||
if (scene.poster) {
|
||||
return getPath(scene.poster, 'thumbnail');
|
||||
|
@ -307,7 +305,7 @@ const propProcessors = {
|
|||
channel: (sceneInfo) => sceneInfo.channel?.name || sceneInfo.network?.name,
|
||||
network: (sceneInfo) => sceneInfo.network?.name || sceneInfo.channel?.name,
|
||||
actors: (sceneInfo) => sceneInfo.actors.map((actor) => actor.name),
|
||||
movie: (sceneInfo) => sceneInfo.movies[0].title,
|
||||
movie: (sceneInfo) => sceneInfo.movies[0]?.title,
|
||||
date: (sceneInfo, format) => formatDate(sceneInfo.effectiveDate, format),
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue