Skip to content

Commit

Permalink
fix: unfreeze nested children array before passing it to linkArray (#293
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Xazzzi authored and gajus committed Jan 3, 2019
1 parent f65a551 commit 4d6a71e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/linkClass.js
Expand Up @@ -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);
}
});

Expand Down

0 comments on commit 4d6a71e

Please sign in to comment.