From 383edc293f12fd209c81f2a26337495c5402de6e Mon Sep 17 00:00:00 2001 From: Simon Backx Date: Wed, 21 Sep 2022 11:11:06 +0200 Subject: [PATCH] Added protection for missing count in clickRate refs https://ghost.slack.com/archives/C02G9E68C/p1663751415397159?thread_ts=1663748981.221509&cid=C02G9E68C --- ghost/admin/app/models/post.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/admin/app/models/post.js b/ghost/admin/app/models/post.js index 390a7addaf..fe14560887 100644 --- a/ghost/admin/app/models/post.js +++ b/ghost/admin/app/models/post.js @@ -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; }