Homepage redirect on wrong Player id
This commit is contained in:
@ -72,6 +72,10 @@ export class ActorPage extends React.Component<Props, state> {
|
||||
data: result.Videos ? result.Videos : [],
|
||||
actor: result.Info
|
||||
});
|
||||
},
|
||||
(_) => {
|
||||
// if there is an load error redirect to home page
|
||||
this.props.history.push('/');
|
||||
}
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user