Skip to content

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

Make db preprocessor handle unexpected value gracefully

Tianzhou Chen964ce032333e
diff --git a/frontend/src/plugins/task/template.ts b/frontend/src/plugins/task/template.ts
index 366de53dee..ad78c12b18 100644
--- a/frontend/src/plugins/task/template.ts
+++ b/frontend/src/plugins/task/template.ts
@@ -11,7 +11,10 @@ export const taskTemplateList: TaskTemplate[] = [
type: "String",
required: true,
preprocessor: (name: string): string => {
- return name.toLowerCase();
+ // In case caller passes corrupted data.
+ // Handled here instead of the caller, because it's
+ // preprocessor specific behavior to handle fallback.
+ return name?.toLowerCase();
},
},
],