Homepage redirect on wrong Player id

This commit is contained in:
2021-06-08 18:12:09 +00:00
parent f0bc0c29dd
commit 7d44ffa225
9 changed files with 91 additions and 45 deletions

View File

@ -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('/');
}
);
}