From 4d6a71ebc3b1ce4f19b1f13951f2ddc5e0e0e56e Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Thu, 3 Jan 2019 19:41:07 +0200 Subject: [PATCH] fix: unfreeze nested children array before passing it to linkArray (#293) --- src/linkClass.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/linkClass.js b/src/linkClass.js index d296742..4ed3975 100644 --- a/src/linkClass.js +++ b/src/linkClass.js @@ -13,7 +13,9 @@ const linkArray = (array: Array, styles: Object, configuration: Object) => { // eslint-disable-next-line no-use-before-define array[index] = linkElement(React.Children.only(value), styles, configuration); } else if (_.isArray(value)) { - array[index] = linkArray(value, styles, configuration); + const unfreezedValue = Object.isFrozen(value) ? objectUnfreeze(value) : value; + + array[index] = linkArray(unfreezedValue, styles, configuration); } });