Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Display port only if it’s specified

Tianzhou Chencff5a484a2ea
diff --git a/frontend/src/components/InstanceTable.vue b/frontend/src/components/InstanceTable.vue
index be8b024b6a..7d4e4c593d 100644
--- a/frontend/src/components/InstanceTable.vue
+++ b/frontend/src/components/InstanceTable.vue
@@ -15,7 +15,11 @@
<span class="">{{ instance.attributes.name }}</span>
</BBTableCell>
<BBTableCell class="w-24">
- {{ instance.attributes.host }}:{{ instance.attributes.port }}
+ <template v-if="instance.attributes.port"
+ >{{ instance.attributes.host }}:{{
+ instance.attributes.port
+ }}</template
+ ><template v-else>{{ instance.attributes.host }}</template>
</BBTableCell>
</template>
</BBTable>