Skip to content

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

Fix undefined error in case we don't have a comment link for a particular task run

天舟8461b0c88c29
diff --git a/frontend/src/components/TaskRunTable.vue b/frontend/src/components/TaskRunTable.vue
index c94b875054..223b9cc32b 100644
--- a/frontend/src/components/TaskRunTable.vue
+++ b/frontend/src/components/TaskRunTable.vue
@@ -158,7 +158,7 @@ export default {
}
};
- const commentLink = (taskRun: TaskRun): CommentLink | undefined => {
+ const commentLink = (taskRun: TaskRun): CommentLink => {
if (taskRun.status == "FAILED") {
if (taskRun.code == MigrationErrorCode.MIGRATION_SCHEMA_MISSING) {
return {
@@ -174,7 +174,10 @@ export default {
};
}
}
- return undefined;
+ return {
+ title: "",
+ link: "",
+ };
};
return {