Show flagged posts consistently throughout the UI (#7063)
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
0331409488
Коммит
4ef844298f
@@ -343,7 +343,7 @@ export default class RhsThread extends React.Component {
|
||||
|
||||
let isRootFlagged = false;
|
||||
if (this.state.flaggedPosts) {
|
||||
isRootFlagged = this.state.flaggedPosts.get(selected.id) === 'true';
|
||||
isRootFlagged = this.state.flaggedPosts.get(selected.id) != null;
|
||||
}
|
||||
|
||||
let rootStatus = 'offline';
|
||||
@@ -367,7 +367,7 @@ export default class RhsThread extends React.Component {
|
||||
|
||||
let isFlagged = false;
|
||||
if (this.state.flaggedPosts) {
|
||||
isFlagged = this.state.flaggedPosts.get(comPost.id) === 'true';
|
||||
isFlagged = this.state.flaggedPosts.get(comPost.id) != null;
|
||||
}
|
||||
|
||||
let status = 'offline';
|
||||
|
||||
Ссылка в новой задаче
Block a user