This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
mastodon
Watch
3
Star
0
Fork
2
Code
Issues
5
Pull Requests
0
Projects
0
Releases
3
Wiki
Activity
Browse Source
Perform deep comparison for card data when receiving new props (
#9270
)
Fixes
#9226
pull/4/head
ThibG
5 years ago
committed by
Eugen Rochko
parent
c81bdafb07
commit
bbd8fdd185
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
app/javascript/mastodon/features/status/components/card.js
+ 1
- 1
app/javascript/mastodon/features/status/components/card.js
View File
@ -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
}
)
;
}
}
Write
Preview
Loading…
Cancel
Save