mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 04:56:00 +00:00
fix status
This commit is contained in:
@@ -125,7 +125,7 @@ function SqlObjectList({ conid, database }) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (objectList.length == 0 && (status && status.name) != 'pending') {
|
if (objectList.length == 0 && status && status.name != 'pending' && objects) {
|
||||||
return (
|
return (
|
||||||
<WidgetsInnerContainer>
|
<WidgetsInnerContainer>
|
||||||
<ErrorInfo
|
<ErrorInfo
|
||||||
@@ -144,7 +144,7 @@ function SqlObjectList({ conid, database }) {
|
|||||||
<InlineButton onClick={handleRefreshDatabase}>Refresh</InlineButton>
|
<InlineButton onClick={handleRefreshDatabase}>Refresh</InlineButton>
|
||||||
</SearchBoxWrapper>
|
</SearchBoxWrapper>
|
||||||
<WidgetsInnerContainer>
|
<WidgetsInnerContainer>
|
||||||
{status && status.name == 'pending' ? (
|
{(status && status.name == 'pending') || !objects ? (
|
||||||
<LoadingInfo message="Loading database structure" />
|
<LoadingInfo message="Loading database structure" />
|
||||||
) : (
|
) : (
|
||||||
<AppObjectList
|
<AppObjectList
|
||||||
|
|||||||
Reference in New Issue
Block a user