Skip to content

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.

Fix incorrect [list_id] param in bulk subscriber deletion UI

Kailash Nadh1f4f4263a38a
diff --git a/frontend/src/views/Subscribers.vue b/frontend/src/views/Subscribers.vue
index acb83cd6..3969ffb3 100644
--- a/frontend/src/views/Subscribers.vue
+++ b/frontend/src/views/Subscribers.vue
@@ -381,7 +381,7 @@ export default Vue.extend({
fn = () => {
this.$api.blocklistSubscribersByQuery({
query: this.queryParams.queryExp,
- list_ids: [this.queryParams.listID],
+ list_ids: this.queryParams.listID ? [this.queryParams.listID] : null,
}).then(() => this.querySubscribers());
};
}
@@ -416,7 +416,7 @@ export default Vue.extend({
fn = () => {
this.$api.deleteSubscribersByQuery({
query: this.queryParams.queryExp,
- list_ids: [this.queryParams.listID],
+ list_ids: this.queryParams.listID ? [this.queryParams.listID] : null,
}).then(() => {
this.querySubscribers();