summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2022-10-17 23:19:57 +0200
committerSanto Cariotti <santo@dcariotti.me>2022-10-17 23:19:57 +0200
commit4ac71c4a7c2efd887f9c58dbd300345e5a879949 (patch)
tree1d91620c6c8ac03b448fc09a77bd7db7ec08ee79
parent7a5c8ece29d184819e87d6304f82e7e7c8793ed7 (diff)
Fix resolved by boolean cast
-rw-r--r--pages/admin/reports.vue3
1 files changed, 3 insertions, 0 deletions
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) => {