From c1aed7ba41246ff250e7aebac2c5ee2532c14868 Mon Sep 17 00:00:00 2001 From: Alex Kotliarskyi Date: Mon, 25 Jan 2016 18:36:10 -0800 Subject: [PATCH] Fix warnings generated by Elements Inspector Summary: public When using dev menu - elements inspector, a yellow box appears with React warning regarding missing key prop in elements array. This commit fixes this issue. Reviewed By: martinbigio Differential Revision: D2835332 fb-gh-sync-id: 3fcb37dfb6bdcff3788963b36416b7da190b9a84 --- Libraries/Inspector/ElementProperties.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Libraries/Inspector/ElementProperties.js b/Libraries/Inspector/ElementProperties.js index 222da109f..1e808d0d1 100644 --- a/Libraries/Inspector/ElementProperties.js +++ b/Libraries/Inspector/ElementProperties.js @@ -47,6 +47,7 @@ var ElementProperties = React.createClass({ this.props.hierarchy, (item, i) => ( this.props.setSelection(i)}> @@ -54,7 +55,11 @@ var ElementProperties = React.createClass({ ), - () => + (i) => ( + + ▸ + + ) )}