mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-23 22:11:09 +03:00
🐛 Fixed newsletter resending showing incorrect recipient data
closes https://github.com/TryGhost/Ghost/issues/16125 We weren't taking into account any existing email segment set on the post. This is usually not an issue because during the publishing flow the post.emailSegment and the selectedRecipientFilter are kept in sync, but it becomes and issue when the email fails to send and is later retried - we now have an inconsistency between the two values.
This commit is contained in:
parent
829c325e51
commit
c11e79765e
@ -168,7 +168,7 @@ export default class PublishOptions {
|
||||
}
|
||||
|
||||
get recipientFilter() {
|
||||
return this.selectedRecipientFilter === undefined ? this.defaultRecipientFilter : this.selectedRecipientFilter;
|
||||
return this.selectedRecipientFilter || this.post.emailSegment || this.defaultRecipientFilter;
|
||||
}
|
||||
|
||||
get defaultRecipientFilter() {
|
||||
|
Loading…
Reference in New Issue
Block a user