From bad59c95bc72e934b709a64b1af25990bebd3629 Mon Sep 17 00:00:00 2001 From: Wu Tianwei <30284043+WTW0313@users.noreply.github.com> Date: Fri, 19 Sep 2025 15:45:45 +0800 Subject: [PATCH] fix: update details display to conditionally show creator information (#25952) --- .../list/template-card/details/index.tsx | 24 ++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/web/app/components/datasets/create-from-pipeline/list/template-card/details/index.tsx b/web/app/components/datasets/create-from-pipeline/list/template-card/details/index.tsx index ae1eceba2d..0402feae3f 100644 --- a/web/app/components/datasets/create-from-pipeline/list/template-card/details/index.tsx +++ b/web/app/components/datasets/create-from-pipeline/list/template-card/details/index.tsx @@ -63,7 +63,7 @@ const Details = ({ > -
+
-
-
+
+
{pipelineTemplateInfo.name}
-
- {t('datasetPipeline.details.createdBy', { - author: pipelineTemplateInfo.created_by, - })} -
+ {pipelineTemplateInfo.created_by && ( +
+ {t('datasetPipeline.details.createdBy', { + author: pipelineTemplateInfo.created_by, + })} +
+ )}