Skip to content

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

Make taskTemplate fieldList required.

Tianzhou Chen7463291b3f9a
diff --git a/frontend/src/plugins/task/template.ts b/frontend/src/plugins/task/template.ts
index af7408d640..77525d8d4c 100644
--- a/frontend/src/plugins/task/template.ts
+++ b/frontend/src/plugins/task/template.ts
@@ -26,6 +26,7 @@ const allTaskTemplateList: TaskTemplate[] = [
payload: {},
};
},
+ fieldList: [],
},
{
type: "bytebase.datasource.create",
diff --git a/frontend/src/plugins/types.ts b/frontend/src/plugins/types.ts
index 030227505d..4f7217a617 100644
--- a/frontend/src/plugins/types.ts
+++ b/frontend/src/plugins/types.ts
@@ -45,5 +45,5 @@ export type TemplateContext = {
export type TaskTemplate = {
type: string;
buildTask: (ctx: TemplateContext) => TaskNew;
- fieldList?: TaskField[];
+ fieldList: TaskField[];
};