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

@@ -59,15 +59,19 @@ export class HomePage extends React.Component<Props, state> {
* @param tag tag to fetch videos
*/
fetchVideoData(tag: number): void {
callAPI(APINode.Video, {action: 'getMovies', Tag: tag}, (result: VideoTypes.VideoUnloadedType[]) => {
this.setState({
data: []
});
this.setState({
data: result,
selectionnr: result.length
});
});
callAPI(
APINode.Video,
{action: 'getMovies', Tag: tag},
(result: {Videos: VideoTypes.VideoUnloadedType[]; TagName: string}) => {
this.setState({
data: []
});
this.setState({
data: result.Videos,
selectionnr: result.Videos.length
});
}
);
}
/**