diff --git a/ui/src/components/modals/current-import-detail-modal/index.jsx b/ui/src/components/modals/current-import-detail-modal/index.jsx index 5b5542b7..a468a2be 100644 --- a/ui/src/components/modals/current-import-detail-modal/index.jsx +++ b/ui/src/components/modals/current-import-detail-modal/index.jsx @@ -53,7 +53,8 @@ function Header() { const dataType = model?.dataType ? DataTypeEnumLabel[model.dataType] : '--'; const granularity = model?.granularity ? GranularityEnumLabel[model.granularity] : '--'; - const fileName = data?.fileName ?? ''; + const splittedPath = data?.path.split('/') ?? []; + const fileName = splittedPath.length > 0 ? splittedPath[splittedPath.length - 1] : ''; const updateTime = data?.date ?? ''; const subtitle = `updated at ${moment(updateTime).format('DD MMM YYYY HH:mm:ss').toString()}`;