Fixed actor data and avatar fetching and display.
This commit is contained in:
@@ -9,7 +9,6 @@ import { curateRelease } from '../curate';
|
||||
function curateActor(actor) {
|
||||
const curatedActor = {
|
||||
...actor,
|
||||
avatar: actor.avatar.media,
|
||||
height: actor.heightMetric && {
|
||||
metric: actor.heightMetric,
|
||||
imperial: actor.heightImperial,
|
||||
@@ -30,6 +29,10 @@ function curateActor(actor) {
|
||||
},
|
||||
};
|
||||
|
||||
if (actor.avatar) {
|
||||
curatedActor.avatar = actor.avatar.media;
|
||||
}
|
||||
|
||||
if (actor.releases) {
|
||||
curatedActor.releases = actor.releases.map(release => curateRelease(release.release));
|
||||
}
|
||||
@@ -145,6 +148,8 @@ function initActorActions(store, _router) {
|
||||
id
|
||||
name
|
||||
slug
|
||||
age
|
||||
birthdate
|
||||
avatar: actorsAvatarByActorId {
|
||||
media {
|
||||
thumbnail
|
||||
|
||||
Reference in New Issue
Block a user