diff --git a/web/app/components/datasets/documents/detail/index.tsx b/web/app/components/datasets/documents/detail/index.tsx index a18bae9930..ebeb2b301b 100644 --- a/web/app/components/datasets/documents/detail/index.tsx +++ b/web/app/components/datasets/documents/detail/index.tsx @@ -127,7 +127,7 @@ const DocumentDetail: FC = ({ datasetId, documentId }) => { - + {documentDetail && !documentDetail.archived && ( = ({ className }) => { return @@ -73,7 +74,8 @@ export const StatusItem: FC<{ reverse?: boolean scene?: 'list' | 'detail' textCls?: string -}> = ({ status, reverse = false, scene = 'list', textCls = '' }) => { + errorMessage?: string +}> = ({ status, reverse = false, scene = 'list', textCls = '', errorMessage }) => { const DOC_INDEX_STATUS_MAP = useIndexStatus() const localStatus = status.toLowerCase() as keyof typeof DOC_INDEX_STATUS_MAP return
{DOC_INDEX_STATUS_MAP[localStatus]?.text} + { + errorMessage && ( + + + + ) + }
}