Skip to content

Commit 19c38b4

Browse files
author
Mug
committed
debug3
1 parent 4ee8097 commit 19c38b4

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/Home.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,13 @@ export class MangaCard extends React.Component {
105105
manga.GetRelationship("chapter").length
106106
); //Limit display length
107107

108-
console.log(manga)
108+
if (manga.attributes == undefined) {
109+
console.log(manga);
110+
console.log(manga.attributes);
111+
return (
112+
<a>attributes undefined error</a>
113+
)
114+
}
109115

110116
return (
111117
<Col md={6} className="col-md-6 border-bottom p-2">

src/MangaDexAPI/API.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,6 @@ class Manga extends MdData {
251251
return this._getMap(this.attributes.description);
252252
}
253253
getTitle() {
254-
console.log(this);
255254
return this._getMap(this.attributes.title);
256255
}
257256
getUrl() {

0 commit comments

Comments
 (0)