diff --git a/x-pack/plugins/ml/public/application/trained_models/nodes_overview/expanded_row.tsx b/x-pack/plugins/ml/public/application/trained_models/nodes_overview/expanded_row.tsx index 560923e9ebdc9..a32747185dcc8 100644 --- a/x-pack/plugins/ml/public/application/trained_models/nodes_overview/expanded_row.tsx +++ b/x-pack/plugins/ml/public/application/trained_models/nodes_overview/expanded_row.tsx @@ -79,43 +79,45 @@ export const ExpandedRow: FC = ({ item }) => { - - -
- -
-
- + {allocatedModels.length > 0 ? ( + + +
+ +
+
+ - {allocatedModels.map(({ model_id: modelId, ...rest }) => { - return ( - <> - - - - -
{modelId}
-
-
-
- - - -
+ {allocatedModels.map(({ model_id: modelId, ...rest }) => { + return ( + <> + + + + +
{modelId}
+
+
+
+ + + +
- - - - ); - })} -
+ + + + ); + })} +
+ ) : null}