mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
DEV: correct performance hack
This code was intended to bypass iterating through tags in absence of a new or unread topic. Instead it always fired cause it was checking for function existence which was clearly always true.
This commit is contained in:
parent
b70f1084f7
commit
179335b5e3
@ -456,7 +456,7 @@ const TopicTrackingState = EmberObject.extend({
|
||||
) {
|
||||
let newTopic = isNew(topic);
|
||||
let unreadTopic = isUnread(topic);
|
||||
if (isUnread || isNew) {
|
||||
if (newTopic || unreadTopic) {
|
||||
tags.forEach(tag => {
|
||||
if (topic.tags.indexOf(tag) > -1) {
|
||||
if (unreadTopic) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user