Skip to content

Commit 1216346

Browse files
author
Lasim
committed
fix: update environment variable display to use variable name instead of index
1 parent 35e9089 commit 1216346

File tree

1 file changed

+3
-3
lines changed
  • services/frontend/src/views/admin/mcp-server-catalog/view

1 file changed

+3
-3
lines changed

services/frontend/src/views/admin/mcp-server-catalog/view/[id].vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -565,15 +565,15 @@ const goBack = () => {
565565
<div v-if="displayEnvironmentVariables && Object.keys(displayEnvironmentVariables).length > 0">
566566
<ul role="list" class="divide-y divide-gray-100 rounded-md border border-gray-200">
567567
<li
568-
v-for="(variable, name) in displayEnvironmentVariables"
569-
:key="name"
568+
v-for="(variable, index) in displayEnvironmentVariables"
569+
:key="index"
570570
class="flex items-center justify-between py-4 pr-5 pl-4 text-sm/6"
571571
>
572572
<div class="flex w-0 flex-1 items-center">
573573
<Settings class="size-5 shrink-0 text-gray-400" aria-hidden="true" />
574574
<div class="ml-4 flex min-w-0 flex-1 gap-2">
575575
<div class="flex flex-col">
576-
<span class="truncate font-medium font-mono">{{ name }}</span>
576+
<span class="truncate font-medium font-mono">{{ variable.name }}</span>
577577
<span v-if="variable.description" class="truncate text-xs text-gray-500">{{ variable.description }}</span>
578578
<div class="flex gap-2 mt-1">
579579
<Badge v-if="variable.required" variant="destructive" class="text-xs">Required</Badge>

0 commit comments

Comments
 (0)