mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-10-16 06:40:05 +08:00
fix(plugin-object-viewer): CB-484 loader not shown
This commit is contained in:
+1
-1
@@ -39,7 +39,7 @@ export const ObjectPropertiesPagePanel = observer(function ObjectPropertiesPageP
|
||||
const style = useStyles(viewerStyles);
|
||||
const { children, isLoading } = useChildren(tab.handlerState.objectId);
|
||||
|
||||
if (!children && isLoading) {
|
||||
if (!children && isLoading()) {
|
||||
return <Loader />;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -35,7 +35,7 @@ export const ObjectPropertyTable = observer(function ObjectPropertyTable({
|
||||
const children = useChildren(objectId);
|
||||
const { isLoading } = useObjectFolder(objectId);
|
||||
|
||||
if ((!children.children && children.isLoading) || isLoading) {
|
||||
if ((!children.children && children.isLoading()) || isLoading) {
|
||||
return <Loader />;
|
||||
}
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ export const ObjectViewerPanel = observer(function ObjectViewerPanel({
|
||||
const dbObjectPagesService = useService(DBObjectPageService);
|
||||
const pages = dbObjectPagesService.orderedPages;
|
||||
|
||||
if (!isLoaded || (!isOutdated && isLoading)) {
|
||||
if (!isLoaded() || (!isOutdated() && isLoading())) {
|
||||
return <Loader />;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user