Skip to content

Commit

Permalink
修复CP作话可能为null而导致的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ldm2060 authored and yingziwu committed Feb 27, 2024
1 parent 71b85e4 commit 5e89e2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules/special/original/gongzicp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ export class Gongzicp extends BaseRuleClass {
})
.join("\n");

if (chapterInfo.postscript.length === 0) {
if (chapterInfo.postscript === null || chapterInfo.postscript.length === 0) {
contentHTML = _contentHTML;
} else {
contentHTML = document.createElement("div");
Expand Down

0 comments on commit 5e89e2c

Please sign in to comment.