From 37e58f5fe76fbb6e42ec52ffb86e3f1094423b2a Mon Sep 17 00:00:00 2001 From: ljf Date: Thu, 3 Jun 2021 18:17:50 +0200 Subject: [PATCH] [fix] key value aggregation in diagnosis --- app/src/views/diagnosis/Diagnosis.vue | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/src/views/diagnosis/Diagnosis.vue b/app/src/views/diagnosis/Diagnosis.vue index 008b0636..cd1dcf96 100644 --- a/app/src/views/diagnosis/Diagnosis.vue +++ b/app/src/views/diagnosis/Diagnosis.vue @@ -183,14 +183,11 @@ export default { }, toggleIgnoreIssue (action, report, item) { - const filterArgs = [report.id].concat(Object.entries(item.meta).reduce((filterArgs, entries) => { - filterArgs.push(entries.join('=')) - return filterArgs - })) + const filterArgs = [report.id].concat(Object.entries(item.meta).map(entries => entries.join('='))) api.put( 'diagnosis/' + action, - { 'filter[]': filterArgs }, + { filter: filterArgs }, `diagnosis.${action}.${item.status.toLowerCase()}` ).then(() => { item.ignored = action === 'ignore'