File tree 1 file changed +7
-8
lines changed
client/packages/lowcoder/src/pages/datasource
1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,6 @@ export const DatasourceList = () => {
111
111
const [ isCreateFormShow , showCreateForm ] = useState ( false ) ;
112
112
const [ shareDatasourceId , setShareDatasourceId ] = useState < string | undefined > ( undefined ) ;
113
113
const [ modify , setModify ] = useState ( false ) ;
114
- const datasource = useSelector ( getDataSource ) ;
115
114
const currentUser = useSelector ( getUser ) ;
116
115
const orgId = currentUser . currentOrgId ;
117
116
const datasourceLoading = useSelector ( getDataSourceLoading ) ;
@@ -336,13 +335,13 @@ export const DatasourceList = () => {
336
335
creator : info . creatorName ,
337
336
edit : info . edit ,
338
337
} ) ) } />
339
- < PaginationComp
340
- currentPage = { currentPage }
341
- pageSize = { pageSize }
342
- setPageSize = { setPageSize }
343
- setCurrentPage = { setCurrentPage }
344
- total = { elements . total }
345
- />
338
+ { ! ! elements . elements . length ? < PaginationComp
339
+ currentPage = { currentPage }
340
+ pageSize = { pageSize }
341
+ setPageSize = { setPageSize }
342
+ setCurrentPage = { setCurrentPage }
343
+ total = { elements . total }
344
+ /> : < > </ > }
346
345
</ BodyWrapper >
347
346
{ shareDatasourceId && (
348
347
< DatasourcePermissionDialog
You can’t perform that action at this time.
0 commit comments