Skip to content

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

fix: missing changelog in changelist detail (#16389)

boojackfea1dfc44d81
diff --git a/frontend/src/components/Changelist/ChangelistDetail/ChangeTable/ChangeTable.vue b/frontend/src/components/Changelist/ChangelistDetail/ChangeTable/ChangeTable.vue
index cc1120f074..eac6c1109d 100644
--- a/frontend/src/components/Changelist/ChangelistDetail/ChangeTable/ChangeTable.vue
+++ b/frontend/src/components/Changelist/ChangelistDetail/ChangeTable/ChangeTable.vue
@@ -59,7 +59,7 @@ const columns = computed((): DataTableColumn<Change>[] => {
{
title: t("changelist.change-source.source"),
key: "source",
- width: 120,
+ width: 160,
render: (change) => <Source change={change} />,
},
{
diff --git a/frontend/src/components/Changelist/ChangelistDetail/ChangeTable/Source.vue b/frontend/src/components/Changelist/ChangelistDetail/ChangeTable/Source.vue
index 81882f1a08..6b31a0c9b4 100644
--- a/frontend/src/components/Changelist/ChangelistDetail/ChangeTable/Source.vue
+++ b/frontend/src/components/Changelist/ChangelistDetail/ChangeTable/Source.vue
@@ -36,6 +36,7 @@
</template>
<script setup lang="ts">
+import { computedAsync } from "@vueuse/core";
import { FileIcon, HistoryIcon } from "lucide-vue-next";
import { computed } from "vue";
import { useChangelogStore } from "@/store";
@@ -50,8 +51,10 @@ const type = computed(() => {
return getChangelistChangeSourceType(props.change);
});
-const changelog = computed(() => {
+const changelog = computedAsync(async () => {
if (type.value !== "CHANGELOG") return undefined;
- return useChangelogStore().getChangelogByName(props.change.source);
+ return await useChangelogStore().getOrFetchChangelogByName(
+ props.change.source
+ );
});
</script>