Commit 4ce6ed20 authored by ThibG's avatar ThibG Committed by Eugen Rochko
Browse files

Perform deep comparison for card data when receiving new props (#9270)

Fixes #9226
parent 886ef1cc
Showing with 1 addition and 1 deletion
+1 -1
......@@ -73,7 +73,7 @@ export default class Card extends React.PureComponent {
};
componentWillReceiveProps (nextProps) {
if (this.props.card !== nextProps.card) {
if (!this.props.card.equals(nextProps.card)) {
this.setState({ embedded: false });
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment