mirror of
https://github.com/element-hq/element-web
synced 2024-11-26 03:05:51 +03:00
Merge pull request #1838 from matrix-org/dbkr/fix_velocity_exception
Null check node before we pass it to velocity
This commit is contained in:
commit
19d3913e06
1 changed files with 1 additions and 1 deletions
|
@ -147,7 +147,7 @@ module.exports = React.createClass({
|
|||
// creating/destroying large numbers of elements"
|
||||
// (https://github.com/julianshapiro/velocity/issues/47)
|
||||
const domNode = ReactDom.findDOMNode(this.nodes[k]);
|
||||
Velocity.Utilities.removeData(domNode);
|
||||
if (domNode) Velocity.Utilities.removeData(domNode);
|
||||
}
|
||||
this.nodes[k] = node;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue