Skip to content

Commit 4d6a71e

Browse files
Xazzzigajus
authored andcommitted
fix: unfreeze nested children array before passing it to linkArray (#293)
1 parent f65a551 commit 4d6a71e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/linkClass.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ const linkArray = (array: Array, styles: Object, configuration: Object) => {
1313
// eslint-disable-next-line no-use-before-define
1414
array[index] = linkElement(React.Children.only(value), styles, configuration);
1515
} else if (_.isArray(value)) {
16-
array[index] = linkArray(value, styles, configuration);
16+
const unfreezedValue = Object.isFrozen(value) ? objectUnfreeze(value) : value;
17+
18+
array[index] = linkArray(unfreezedValue, styles, configuration);
1719
}
1820
});
1921

0 commit comments

Comments
 (0)