mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
REFACTOR: variable '_postSnapshot' always evaluates to true (#9671)
This commit is contained in:
parent
d020e70643
commit
930989d462
@ -133,8 +133,7 @@ export default DropdownSelectBoxComponent.extend({
|
||||
if (
|
||||
this.canWhisper &&
|
||||
(!_postSnapshot ||
|
||||
(_postSnapshot &&
|
||||
_postSnapshot.post_type !== this.site.post_types.whisper))
|
||||
_postSnapshot.post_type !== this.site.post_types.whisper)
|
||||
) {
|
||||
items.push({
|
||||
name: I18n.t("composer.composer_actions.toggle_whisper.label"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user