Skip to content

Commit

Permalink
chore: don't need to show some props when they're unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
fangmarks committed Oct 18, 2024
1 parent ef40865 commit 98b7a00
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/frontend/src/pages/servers/manage/[id]/options/info.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@
>
<tbody>
<tr v-for="property in properties" :key="property.name">
<td class="py-3">{{ property.name }}</td>
<td class="px-4">
<td v-if="property.value !== 'Unknown'" class="py-3">{{ property.name }}</td>
<td v-if="property.value !== 'Unknown'" class="px-4">
<UiCopyCode :text="property.value" />
</td>
</tr>
Expand Down Expand Up @@ -107,7 +107,7 @@ const copyPassword = () => {
const properties = [
{ name: "Server ID", value: serverId ?? "Unknown" },
{ name: "Kind", value: data.value?.upstream?.kind ?? "Unknown" },
{ name: "Kind", value: data.value?.upstream?.kind ?? data.value?.loader ?? "Unknown"},

Check failure on line 110 in apps/frontend/src/pages/servers/manage/[id]/options/info.vue

View workflow job for this annotation

GitHub Actions / Build, Test, and Lint

Insert `·`
{ name: "Project ID", value: data.value?.upstream?.project_id ?? "Unknown" },
{ name: "Version ID", value: data.value?.upstream?.version_id ?? "Unknown" },
];
Expand Down

0 comments on commit 98b7a00

Please sign in to comment.