mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-04-08 02:52:39 -05:00
Added protection for missing count in clickRate
refs https://ghost.slack.com/archives/C02G9E68C/p1663751415397159?thread_ts=1663748981.221509&cid=C02G9E68C
This commit is contained in:
parent
9f41dde506
commit
383edc293f
1 changed files with 1 additions and 1 deletions
|
@ -257,7 +257,7 @@ export default Model.extend(Comparable, ValidationEngine, {
|
|||
if (!this.email || !this.email.emailCount) {
|
||||
return 0;
|
||||
}
|
||||
if (!this.count.clicks) {
|
||||
if (!this.count || !this.count.clicks) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue