diff --git a/src/stores/admin/club/newsletter/newsletterRecipients.ts b/src/stores/admin/club/newsletter/newsletterRecipients.ts index 2a7efb3..cc62005 100644 --- a/src/stores/admin/club/newsletter/newsletterRecipients.ts +++ b/src/stores/admin/club/newsletter/newsletterRecipients.ts @@ -20,7 +20,10 @@ export const useNewsletterRecipientsStore = defineStore("newsletterRecipients", }, getters: { detectedChangeNewsletterRecipients: (state) => - !isEqual(state.origin, state.recipients) && state.syncingNewsletterRecipients != "syncing", + !isEqual( + state.origin.sort((a: string, b: string) => a.localeCompare(b)), + state.recipients.sort((a: string, b: string) => a.localeCompare(b)) + ) && state.syncingNewsletterRecipients != "syncing", }, actions: { setNewsletterRecipientsSyncingState(state: "synced" | "syncing" | "detectedChanges" | "failed") { diff --git a/src/views/admin/club/newsletter/NewsletterRecipients.vue b/src/views/admin/club/newsletter/NewsletterRecipients.vue index e1b2d96..d49ea15 100644 --- a/src/views/admin/club/newsletter/NewsletterRecipients.vue +++ b/src/views/admin/club/newsletter/NewsletterRecipients.vue @@ -1,51 +1,53 @@