Fix/dataset add pages tip (#410)

This commit is contained in:
zxhlyh
2023-06-19 16:32:25 +08:00
committed by GitHub
parent ce2996e7d4
commit f797fab206
6 changed files with 68 additions and 50 deletions

View File

@@ -220,7 +220,7 @@ const Documents: FC<IDocumentsProps> = ({ datasetId }) => {
? <Loading type='app' />
: total > 0
? <List documents={documentsList || []} datasetId={datasetId} onUpdate={mutate} />
: <EmptyElement onClick={routeToDocCreate} />
: <EmptyElement onClick={routeToDocCreate} type={isDataSourceNotion ? 'sync' : 'upload'} />
}
{/* Show Pagination only if the total is more than the limit */}
{(total && total > limit)