Timothy Pomeroy 2 éve
szülő
commit
345c65e8dd
1 módosított fájl, 5 hozzáadás és 7 törlés
  1. 5 7
      components/Automation.js

+ 5 - 7
components/Automation.js

@@ -15,13 +15,11 @@ const Client = ({ name, client, connection, ...rest }) => {
     <Panel header={name} {...rest}>
       <p>IP address: {client}</p>
       <div style={{ overflowY: "scroll", height: 200 }}>
-        {Object.keys(connection?.state)?.map((o, i) => {
-          return (
-            <div>
-              <strong>{o}:</strong> {normalize(connection?.state?.[o])}
-            </div>
-          );
-        })}
+        {Object.keys(connection?.state)?.map((o, i) => (
+          <div key={i}>
+            <strong>{o}:</strong> {normalize(connection?.state?.[o])}
+          </div>
+        ))}
       </div>
     </Panel>
   );