From 2fb370982b4463799dc276ac53f53c637e6da2e4 Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Wed, 2 Jun 2021 03:41:42 +0200 Subject: [PATCH] [fix] Ignore button is broken --- app/src/views/diagnosis/Diagnosis.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/views/diagnosis/Diagnosis.vue b/app/src/views/diagnosis/Diagnosis.vue index 5b1d5dc8..008b0636 100644 --- a/app/src/views/diagnosis/Diagnosis.vue +++ b/app/src/views/diagnosis/Diagnosis.vue @@ -183,14 +183,14 @@ export default { }, toggleIgnoreIssue (action, report, item) { - const filterArgs = Object.entries(item.meta).reduce((filterArgs, entries) => { + const filterArgs = [report.id].concat(Object.entries(item.meta).reduce((filterArgs, entries) => { filterArgs.push(entries.join('=')) return filterArgs - }, [report.id]) + })) api.put( 'diagnosis/' + action, - { filter: filterArgs }, + { 'filter[]': filterArgs }, `diagnosis.${action}.${item.status.toLowerCase()}` ).then(() => { item.ignored = action === 'ignore'