From 47f5a0de81181880e33e9c265c7886cb11ad303e Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Fri, 5 Jul 2024 13:35:57 +0200 Subject: [PATCH] fix: Add validation for webhook endpoint selection --- resources/views/livewire/source/github/change.blade.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resources/views/livewire/source/github/change.blade.php b/resources/views/livewire/source/github/change.blade.php index 932e352f3..a87eec191 100644 --- a/resources/views/livewire/source/github/change.blade.php +++ b/resources/views/livewire/source/github/change.blade.php @@ -219,6 +219,10 @@ function createGithubApp(webhook_endpoint, preview_deployment_permissions, admin uuid, html_url } = @json($github_app); + if (!webhook_endpoint) { + alert('Please select a webhook endpoint.'); + return; + } let baseUrl = webhook_endpoint; const name = @js($name); const isDev = @js(config('app.env')) ===