Skip to content

Commit

Permalink
fix(connector): Ganma - vacant chapter titles become undefined (#5601)
Browse files Browse the repository at this point in the history
* fix(connector): Ganma - vacant chapter titles become undefined

* chore(connector): Ganma - remove unnecessary changes
  • Loading branch information
yinyanfr authored Mar 25, 2023
1 parent ca31dd1 commit 9090f34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web/mjs/connectors/Ganma.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default class Ganma extends Connector {
.map((chapter, index) => {
return {
id: chapter.id,
title: ((chapter.number || index + 1) + ': 【' + chapter.title + '】 ' + chapter.subtitle).trim()
title: ((chapter.number || index + 1) + ': 【' + chapter.title + '】 ' + (chapter.subtitle || "")).trim()
};
});
}
Expand Down

0 comments on commit 9090f34

Please sign in to comment.