Skip to content

Commit 1cb9634

Browse files
author
Lasim
committed
refactor: enhance placeholder value check in isPlaceholderValue function
1 parent 61d8d34 commit 1cb9634

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

services/frontend/src/components/mcp-server/EnvironmentVariableCard.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,12 @@ const missingRequiredFields = computed(() => {
8484
8585
// Helper function to check if a value is a placeholder
8686
const isPlaceholderValue = (value: string, env: any) => {
87-
if (!value) return true
87+
if (!value || value.trim().length === 0) return true
8888
8989
const trimmedValue = value.trim()
9090
91-
// Check against common placeholder patterns
91+
// Check against common placeholder patterns that users might manually enter
9292
const placeholderPatterns = [
93-
env.placeholder,
9493
`<insert-your-${env.name.toLowerCase()}-here>`,
9594
`<your-${env.name.toLowerCase()}>`,
9695
`<${env.name.toLowerCase()}>`,

0 commit comments

Comments
 (0)