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

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

Fixes #9226
parent 886ef1cc
......@@ -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 });
}
}
......
Markdown is supported
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