From dc082499f586a2e02914c3def66174fb29549505 Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Tue, 22 Aug 2017 15:20:24 +0100 Subject: [PATCH] Notices: Fix `Array.reverse` call We have to clone the input array to avoid mutating the original parameter --- components/notice/list.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/notice/list.js b/components/notice/list.js index 888c755537e1c2..bc9059a5f4579a 100644 --- a/components/notice/list.js +++ b/components/notice/list.js @@ -13,7 +13,7 @@ function NoticeList( { notices, onRemove = noop } ) { return (
- { notices.reverse().map( ( notice ) => ( + { [ ...notices ].reverse().map( ( notice ) => ( ) ) }