mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
REFACTOR: variable '_postSnapshot' always evaluates to true (#9671)
This commit is contained in:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user