fix(webhooks): make sure events are initialized with false

This commit is contained in:
kolaente 2026-01-10 18:27:19 +01:00
parent 9a3e79af8e
commit 84b733ec0c
1 changed files with 4 additions and 0 deletions

View File

@ -53,6 +53,10 @@ const availableEvents = ref<string[]>()
async function loadWebhooks() {
webhooks.value = await webhookService.getAll({projectId: project.value.id})
availableEvents.value = await webhookService.getAvailableEvents()
// Initialize all events to false to avoid undefined modelValue errors
newWebhookEvents.value = Object.fromEntries(
availableEvents.value.map(event => [event, false]),
)
}
const showDeleteModal = ref(false)