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