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: storage error on dbs

Andras Bacsai51db2f797d19
diff --git a/app/Livewire/Project/Shared/Storages/Add.php b/app/Livewire/Project/Shared/Storages/Add.php
index e2e84c358d..2bfbf7bafb 100644
--- a/app/Livewire/Project/Shared/Storages/Add.php
+++ b/app/Livewire/Project/Shared/Storages/Add.php
@@ -31,14 +31,16 @@ class Add extends Component
public function mount()
{
$this->parameters = get_route_parameters();
- $applicationUuid = $this->parameters['application_uuid'];
- $application = Application::where('uuid', $applicationUuid)->first();
- if (!$application) {
- abort(404);
- }
- if ($application->destination->server->isSwarm()) {
- $this->isSwarm = true;
- $this->rules['host_path'] = 'required|string';
+ if (data_get($this->parameters, 'application_uuid')) {
+ $applicationUuid = $this->parameters['application_uuid'];
+ $application = Application::where('uuid', $applicationUuid)->first();
+ if (!$application) {
+ abort(404);
+ }
+ if ($application->destination->server->isSwarm()) {
+ $this->isSwarm = true;
+ $this->rules['host_path'] = 'required|string';
+ }
}
}