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: show shared env scopes dropdown even when no variables exist

Andras Bacsai118966e8102c
diff --git a/resources/views/components/forms/env-var-input.blade.php b/resources/views/components/forms/env-var-input.blade.php
index 833de71903..53a6b21ec3 100644
--- a/resources/views/components/forms/env-var-input.blade.php
+++ b/resources/views/components/forms/env-var-input.blade.php
@@ -20,22 +20,12 @@
availableVars: @js($availableVars),
scopeUrls: @js($scopeUrls),
- isAutocompleteDisabled() {
- const hasAnyVars = Object.values(this.availableVars).some(vars => vars.length > 0);
- return !hasAnyVars;
- },
-
handleInput() {
const input = this.$refs.input;
if (!input) return;
const value = input.value || '';
- if (this.isAutocompleteDisabled()) {
- this.showDropdown = false;
- return;
- }
-
this.cursorPosition = input.selectionStart || 0;
const textBeforeCursor = value.substring(0, this.cursorPosition);