fix status

This commit is contained in:
Jan Prochazka
2021-01-23 09:22:33 +01:00
parent 11f5bb8b93
commit 6b642c6634

View File

@@ -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