From 4ac71c4a7c2efd887f9c58dbd300345e5a879949 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Mon, 17 Oct 2022 23:19:57 +0200 Subject: Fix resolved by boolean cast --- pages/admin/reports.vue | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pages/admin') diff --git a/pages/admin/reports.vue b/pages/admin/reports.vue index 8422eb7..877c228 100644 --- a/pages/admin/reports.vue +++ b/pages/admin/reports.vue @@ -184,6 +184,9 @@ export default { } }, saveWarning() { + if (!this.form.resolved_by) this.form.resolved_by = 0; + else this.form.resolved_by = this.me.id; + this.$store .dispatch("warnings/editWarning", { ...this.form }) .then((response) => { -- cgit v1.2.3-18-g5258