소스 검색

Fix incorrect [list_id] param in bulk subscriber deletion UI

Kailash Nadh 3 년 전
부모
커밋
1f4f4263a3
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      frontend/src/views/Subscribers.vue

+ 2 - 2
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();