Skip to content

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

chore: use last deploy id instead of head (#13357)

boojackc481030dac27
diff --git a/frontend/src/components/IssueV1/components/TaskRunSection/TaskRunLogTable/TaskRunLogTable.vue b/frontend/src/components/IssueV1/components/TaskRunSection/TaskRunLogTable/TaskRunLogTable.vue
index d3958663c9..1ae1c76522 100644
--- a/frontend/src/components/IssueV1/components/TaskRunSection/TaskRunLogTable/TaskRunLogTable.vue
+++ b/frontend/src/components/IssueV1/components/TaskRunSection/TaskRunLogTable/TaskRunLogTable.vue
@@ -10,7 +10,7 @@
<script setup lang="tsx">
import { computedAsync } from "@vueuse/core";
-import { head } from "lodash-es";
+import { last } from "lodash-es";
import { CircleAlertIcon } from "lucide-vue-next";
import { NTooltip, NDataTable, type DataTableColumn } from "naive-ui";
import { computed, ref } from "vue";
@@ -160,7 +160,7 @@ const flattenLogEntries = computed(() => {
});
return flattenEntries;
});
-const headDeployId = computed(() => head(logEntries.value)?.deployId);
+const lastDeployId = computed(() => last(logEntries.value)?.deployId);
const rowKey = (entry: FlattenLogEntry) => {
return `${entry.batch}-${entry.serial}`;
@@ -208,7 +208,7 @@ const columns = computed(() => {
return (
<div class="flex flex-row items-center gap-1">
<span>{String(entry.batch + 1)}</span>
- {headDeployId.value !== entry.deployId && (
+ {lastDeployId.value !== entry.deployId && (
<NTooltip>
{{
trigger: () => (