Skip to content

Commit a25d7dd

Browse files
committed
Fix for non-Layout WS Overview page
1 parent 40c8ebd commit a25d7dd

File tree

1 file changed

+8
-1
lines changed
  • x-pack/plugins/enterprise_search/public/applications/workplace_search/views/overview

1 file changed

+8
-1
lines changed

x-pack/plugins/enterprise_search/public/applications/workplace_search/views/overview/overview.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,14 @@ export const Overview: React.FC = () => {
5656
initializeOverview();
5757
}, [initializeOverview]);
5858

59-
if (dataLoading) return <Loading />;
59+
// TODO: Remove div wrapper once the Overview page is using the full Layout
60+
if (dataLoading) {
61+
return (
62+
<div style={{ height: '90vh' }}>
63+
<Loading />
64+
</div>
65+
);
66+
}
6067

6168
const hideOnboarding = hasUsers && hasOrgSources && isOldAccount && orgName !== defaultOrgName;
6269

0 commit comments

Comments
 (0)