meedan / montage-components

Monorepo of components for Montage
https://montage.meedan.com
0 stars 0 forks source link

Adding tag may results in page crash #170

Closed piotrfonte closed 4 years ago

piotrfonte commented 4 years ago

Not sure how to reproduce this, but it happened after adding quite a few new tags, I made another selection, popover appeared, I choose to add a tag, entered a name and hit enter and got the following:

TypeError: Cannot perform 'IsArray' on a proxy that has been revoked
validateChildKeys
node_modules/react/cjs/react.development.js:1790
  1787 |   return;
  1788 | }
  1789 | 
> 1790 | if (Array.isArray(node)) {
       | ^  1791 |   for (var i = 0; i < node.length; i++) {
  1792 |     var child = node[i];
  1793 | 
View compiled
createElementWithValidation [as createElement]
node_modules/react/cjs/react.development.js:2024
  2021 | 
  2022 | if (validType) {
  2023 |   for (var i = 2; i < arguments.length; i++) {
> 2024 |     validateChildKeys(arguments[i], type);
       | ^  2025 |   }
  2026 | }
  2027 | 
View compiled
NameControls.render
src/components/ofTimeline/ofEntities/EntityControls.js:141
  138 | const read = (
  139 |   <Grid alignItems="center" className={classes.Grid} container justify="space-between" wrap="nowrap">
  140 |     <Grid item>
> 141 |       <Tooltip title={entityName} enterDelay={750}>
      | ^  142 |         <Typography
  143 |           className={classes.Typography}
  144 |           color={this.state.flow === 'reposition' ? 'primary' : 'textSecondary'}