mirror of
https://github.com/discourse/discourse.git
synced 2025-02-27 16:06:10 +00:00
Fixes scope problem.
This commit is contained in:
parent
e7a4900baf
commit
da4c96fad2
@ -43,7 +43,7 @@ export default createWidget('post-gutter', {
|
||||
if (state.collapsed) {
|
||||
var differentTitles = [], allTitles = [];
|
||||
links.forEach(function(x) { allTitles.push(x.title); });
|
||||
differentTitles = allTitles.filter(function(item, i, ar){ return ar.indexOf(item) === i; });
|
||||
differentTitles = allTitles.filter(function(item, iter, ar){ return ar.indexOf(item) === iter; });
|
||||
const remaining = differentTitles.length - MAX_GUTTER_LINKS;
|
||||
|
||||
if (remaining > 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user