mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 10:46: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 (
|
||||
<WidgetsInnerContainer>
|
||||
<ErrorInfo
|
||||
@@ -144,7 +144,7 @@ function SqlObjectList({ conid, database }) {
|
||||
<InlineButton onClick={handleRefreshDatabase}>Refresh</InlineButton>
|
||||
</SearchBoxWrapper>
|
||||
<WidgetsInnerContainer>
|
||||
{status && status.name == 'pending' ? (
|
||||
{(status && status.name == 'pending') || !objects ? (
|
||||
<LoadingInfo message="Loading database structure" />
|
||||
) : (
|
||||
<AppObjectList
|
||||
|
||||
Reference in New Issue
Block a user