From ee69cdbf7b31b6a6024757ede55d49e3bd290b52 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 25 Apr 2024 12:09:36 +0200 Subject: [PATCH] fix: 500 error on edge case --- .../views/livewire/project/application/source.blade.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/views/livewire/project/application/source.blade.php b/resources/views/livewire/project/application/source.blade.php index 84aec3e81..4fe26bcc6 100644 --- a/resources/views/livewire/project/application/source.blade.php +++ b/resources/views/livewire/project/application/source.blade.php @@ -36,10 +36,10 @@ label="Commit SHA" /> - @isset($application->private_key_id) + @if(data_get($application, 'private_key_id'))

Deploy Key

Currently attached Private Key: {{ $application->private_key->name }} + class="dark:text-warning">{{ data_get($application, 'private_key.name') }}

Select another Private Key

@@ -49,6 +49,6 @@ class="dark:text-warning">{{ $application->private_key->name }} @endforeach - @endisset + @endif