mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-22 04:45:46 -04:00
Fixes scope problem.
This commit is contained in:
parent
e7a4900baf
commit
da4c96fad2
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue