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'