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 database type check in service show blade file

Andras Bacsai3abc720926db
diff --git a/resources/views/livewire/project/service/show.blade.php b/resources/views/livewire/project/service/show.blade.php
index c194fb8d6d..4279045952 100644
--- a/resources/views/livewire/project/service/show.blade.php
+++ b/resources/views/livewire/project/service/show.blade.php
@@ -14,9 +14,9 @@
href="#">Storages
</a>
@if (
- $serviceDatabase->databaseType() === 'standalone-mysql' ||
- $serviceDatabase->databaseType() === 'standalone-postgresql' ||
- $serviceDatabase->databaseType() === 'standalone-mariadb')
+ $serviceDatabase?->databaseType() === 'standalone-mysql' ||
+ $serviceDatabase?->databaseType() === 'standalone-postgresql' ||
+ $serviceDatabase?->databaseType() === 'standalone-mariadb')
<a :class="activeTab === 'backups' && 'text-white'"
@click.prevent="activeTab = 'backups'; window.location.hash = 'backups'" href="#">Backups</a>
@endif