Skip to content

Commit

Permalink
debug3
Browse files Browse the repository at this point in the history
  • Loading branch information
Mug committed Sep 28, 2022
1 parent 4ee8097 commit 19c38b4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,13 @@ export class MangaCard extends React.Component {
manga.GetRelationship("chapter").length
); //Limit display length

console.log(manga)
if (manga.attributes == undefined) {
console.log(manga);
console.log(manga.attributes);
return (
<a>attributes undefined error</a>
)
}

return (
<Col md={6} className="col-md-6 border-bottom p-2">
Expand Down
1 change: 0 additions & 1 deletion src/MangaDexAPI/API.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,6 @@ class Manga extends MdData {
return this._getMap(this.attributes.description);
}
getTitle() {
console.log(this);
return this._getMap(this.attributes.title);
}
getUrl() {
Expand Down

0 comments on commit 19c38b4

Please sign in to comment.