|
|
@ -36,7 +36,7 @@ const DatabaseTable = (props) => { |
|
|
|
}, [resourceCatalogId]); |
|
|
|
|
|
|
|
const initData = (query = {}) => { |
|
|
|
dispatch(metadataManagement.getMetadataDatabases({ resourceId: params?.resourceId, catalog: resourceCatalogId, keywords, orderBy: 'createAt', ...query })).then(res => { |
|
|
|
dispatch(metadataManagement.getMetadataDatabases({ resourceId: params?.type == 'databases' ? params?.resourceId : null, catalog: resourceCatalogId, keywords, orderBy: 'createAt', ...query })).then(res => { |
|
|
|
if (res.success) { |
|
|
|
setTableData(res.payload.data.rows); |
|
|
|
setTableDataCount(res.payload.data.count); |
|
|
|