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

Fixes #9226
Tento commit je obsažen v:
ThibG
2018-11-23 22:14:25 +01:00
odevzdal Eugen Rochko
rodič 886ef1cc38
revize 4ce6ed2021
+1 -1
Zobrazit soubor
@@ -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 });
}
}