Removed fallback to clicked count for opened count

fixes https://github.com/TryGhost/Team/issues/2189

We don't want this fallback because the table on the analytics page will be empty while the count be higher than zero
This commit is contained in:
Simon Backx 2022-10-27 18:40:13 +02:00
parent 66e282f7e3
commit 250da0abf7

View File

@ -111,10 +111,7 @@ module.exports = async (model, frame, options = {}) => {
if (jsonModel.email && jsonModel.count) {
jsonModel.email.opened_count = Math.min(
Math.max(
jsonModel.email.opened_count || 0,
jsonModel.count.clicks || 0
),
jsonModel.email.opened_count || 0,
jsonModel.email.email_count
);
}