From 3551f1977202498d63480b678708e15afb7cd470 Mon Sep 17 00:00:00 2001 From: Jennie Robinson Faber Date: Sun, 5 Apr 2026 16:25:10 +0100 Subject: [PATCH] fix: correct POST body field name and state enum values in tag components --- app/components/CooperativeTagSelector.vue | 4 ++-- app/components/TagSuggestModal.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/components/CooperativeTagSelector.vue b/app/components/CooperativeTagSelector.vue index 46a82f0..1772c9c 100644 --- a/app/components/CooperativeTagSelector.vue +++ b/app/components/CooperativeTagSelector.vue @@ -31,9 +31,9 @@ const props = defineProps({ const emit = defineEmits(["update:modelValue", "suggest"]); const options = [ - { label: "Can help", value: "can_help" }, + { label: "Can help", value: "help" }, { label: "Interested", value: "interested" }, - { label: "Need help", value: "need_help" }, + { label: "Need help", value: "seeking" }, ]; function getState(slug) { diff --git a/app/components/TagSuggestModal.vue b/app/components/TagSuggestModal.vue index 0175ab2..bacf2b1 100644 --- a/app/components/TagSuggestModal.vue +++ b/app/components/TagSuggestModal.vue @@ -60,7 +60,7 @@ async function submit() { try { await $fetch("/api/tags/suggest", { method: "POST", - body: { name: tagName.value.trim(), pool: props.pool }, + body: { label: tagName.value.trim(), pool: props.pool }, }); success.value = true; } catch (e) {