This commit is contained in:
@@ -30,9 +30,11 @@ module.exports = class {
|
|||||||
|
|
||||||
const comments = this.input.chapter.comments || []
|
const comments = this.input.chapter.comments || []
|
||||||
const lastComment = comments[comments.length - 1]
|
const lastComment = comments[comments.length - 1]
|
||||||
let date = lastComment.fictionalDate || chapter.fictionalDate
|
if (lastComment != null) {
|
||||||
if (date != null) {
|
let date = lastComment.fictionalDate || this.input.chapter.fictionalDate
|
||||||
this.change("fictionalDate", {target: {value: moment(date).format("MMM D, YYYY")}})
|
if (date != null) {
|
||||||
|
this.change("fictionalDate", {target: {value: moment(date).format("MMM D, YYYY")}})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user