mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-04-24 22:25:15 +00:00
fix(webhooks): make sure events are initialized with false
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user