fix: 500 error on edge case

This commit is contained in:
Andras Bacsai 2024-04-25 12:09:36 +02:00
parent a72a25640f
commit ee69cdbf7b

View File

@ -36,10 +36,10 @@
label="Commit SHA" />
</div>
</div>
@isset($application->private_key_id)
@if(data_get($application, 'private_key_id'))
<h3 class="pt-4">Deploy Key</h3>
<div class="py-2 pt-4">Currently attached Private Key: <span
class="dark:text-warning">{{ $application->private_key->name }}</span>
class="dark:text-warning">{{ data_get($application, 'private_key.name') }}</span>
</div>
<h4 class="py-2 ">Select another Private Key</h4>
@ -49,6 +49,6 @@ class="dark:text-warning">{{ $application->private_key->name }}</span>
</x-forms.button>
@endforeach
</div>
@endisset
@endif
</form>
</div>