Compare commits
1 Commits
9a37677d52
...
4b26080193
Author | SHA1 | Date | |
---|---|---|---|
4b26080193 |
@ -14,9 +14,10 @@ import { Runtime } from "../details/runtime";
|
|||||||
import { Title } from "../details/title";
|
import { Title } from "../details/title";
|
||||||
|
|
||||||
const ListDetails = (props) => {
|
const ListDetails = (props) => {
|
||||||
if (props.data === undefined) {
|
if (!props.data || Object.keys(props.data).length === 0) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (props.loading) {
|
if (props.loading) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -51,7 +51,7 @@ const ShowList = ({ match, history }) => {
|
|||||||
history.push("/shows/details/" + imdbId);
|
history.push("/shows/details/" + imdbId);
|
||||||
};
|
};
|
||||||
|
|
||||||
let selectedShow = Map();
|
let selectedShow = new Map();
|
||||||
if (selectedImdbId !== "") {
|
if (selectedImdbId !== "") {
|
||||||
selectedShow = shows.get(selectedImdbId);
|
selectedShow = shows.get(selectedImdbId);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user