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(environment-variable): guard refresh against missing or stale variables

Andras Bacsai3d5fee4d3651
diff --git a/app/Livewire/Project/Shared/EnvironmentVariable/Show.php b/app/Livewire/Project/Shared/EnvironmentVariable/Show.php
index 2a18be13c0..c567d96aa3 100644
--- a/app/Livewire/Project/Shared/EnvironmentVariable/Show.php
+++ b/app/Livewire/Project/Shared/EnvironmentVariable/Show.php
@@ -98,6 +98,9 @@ class Show extends Component
public function refresh()
{
+ if (! $this->env->exists || ! $this->env->fresh()) {
+ return;
+ }
$this->syncData();
$this->checkEnvs();
}