[ML] Fixing memory usage serverless check (#164732)

The check which decides what is shown on the memory usage page for
serverless or stack versions of kibana is the wrong way round.
The node list should be shown in non-serverless environments.
This commit is contained in:
James Gowdy 2023-08-24 17:50:12 +01:00 committed by GitHub
parent 67958a1660
commit b33effa182
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -51,8 +51,6 @@ export const MemoryUsagePage: FC = () => {
<SavedObjectsWarning onCloseFlyout={refresh} />
{isADEnabled && isDFAEnabled && isNLPEnabled ? (
<JobMemoryTreeMap />
) : (
<>
<EuiTabs>
<EuiTab
@ -70,6 +68,8 @@ export const MemoryUsagePage: FC = () => {
</EuiTabs>
{selectedTab === TAB.NODES ? <NodesList /> : <MemoryPage />}
</>
) : (
<JobMemoryTreeMap />
)}
</>
);