Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix: 500 error on edge case

Andras Bacsaiee69cdbf7b31
diff --git a/resources/views/livewire/project/application/source.blade.php b/resources/views/livewire/project/application/source.blade.php
index 84aec3e81a..4fe26bcc66 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" />
</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 @@
</x-forms.button>
@endforeach
</div>
- @endisset
+ @endif
</form>
</div>