fix(plugin-object-viewer): CB-484 loader not shown

This commit is contained in:
Wroud
2020-11-11 00:15:06 +03:00
parent f894791a80
commit 2303aca0c5
3 changed files with 3 additions and 3 deletions
@@ -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 />;
}
@@ -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 />;
}