0
Fork 0
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:
Simon Backx 2022-09-21 11:11:06 +02:00
parent 9f41dde506
commit 383edc293f

View file

@ -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;
}