Skip to content

Commit f8fab15

Browse files
committed
fix: use correct i18n keys for data export step description in template list
The generateStepDescription function in WorkflowTemplateList was mapping export_review and export_execute to the same i18n keys as sql_review and sql_execute, causing data export templates to display "审核节点" and "执行上线" instead of "导出审批" and "导出执行确认" in the step description column. Fix by mapping to dataExport-specific i18n keys.
1 parent e46cc62 commit f8fab15

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/sqle/src/page/WorkflowTemplate/WorkflowTemplateList

packages/sqle/src/page/WorkflowTemplate/WorkflowTemplateList/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ const WorkflowTemplateList: React.FC = () => {
4242
const stepTypeNameMap: Record<string, string> = {
4343
sql_review: t('workflowTemplate.progressConfig.review.title'),
4444
sql_execute: t('workflowTemplate.progressConfig.exec.title'),
45-
export_review: t('workflowTemplate.progressConfig.review.title'),
46-
export_execute: t('workflowTemplate.progressConfig.exec.title')
45+
export_review: t('workflowTemplate.dataExport.reviewTitle'),
46+
export_execute: t('workflowTemplate.dataExport.execTitle')
4747
};
4848
return steps
4949
.map((step) => stepTypeNameMap[step.type ?? ''] ?? step.type ?? '')

0 commit comments

Comments
 (0)