From 12fd630d0c455ee92c548ed7c5ce7adaab740a05 Mon Sep 17 00:00:00 2001 From: Adrian Oprea Date: Thu, 18 Jan 2018 09:59:37 +0200 Subject: [PATCH] fix(AboutScinoteModal): Enable react optimizations Children generated within a loop or by an iterator need to be passed a unique `key` property so React can properly watch their updates and perform the necessary actions. Signed-off-by: Adrian Oprea --- .../components/Navigation/components/AboutScinoteModal.jsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/javascript/src/components/Navigation/components/AboutScinoteModal.jsx b/app/javascript/src/components/Navigation/components/AboutScinoteModal.jsx index fe4fb8460..35fd8dc40 100644 --- a/app/javascript/src/components/Navigation/components/AboutScinoteModal.jsx +++ b/app/javascript/src/components/Navigation/components/AboutScinoteModal.jsx @@ -30,7 +30,11 @@ export default (props: Props): Node => { - {addons.map((addon: string): Node =>

{addon}

)} + { + addons.map( + (addon: string): Node => (

{addon}

) + ) + } }