From 0c9bed0e6c128602e5fe6cda752f362652653b56 Mon Sep 17 00:00:00 2001 From: Simon Howe Date: Fri, 29 Jan 2016 18:48:38 +0100 Subject: [PATCH] Tidying up code. After experimenting w/ ways of returning react cmp instances --- client/app/scripts/charts/node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/app/scripts/charts/node.js b/client/app/scripts/charts/node.js index 8d147bd41a..b6e5618f93 100644 --- a/client/app/scripts/charts/node.js +++ b/client/app/scripts/charts/node.js @@ -20,7 +20,7 @@ function stackedShape(Shape) { } const nodeShapes = { - 'hosts': (props) => React.createFactory(NodeShapeCircle)(props), + 'hosts': NodeShapeCircle, 'containers': NodeShapeHex, 'containers-by-hostname': stackedShape(NodeShapeHex), 'containers-by-image': stackedShape(NodeShapeHex),