Fixes javascript console errors
Этот коммит содержится в:
@@ -188,8 +188,8 @@ module.exports = React.createClass({
|
|||||||
for (var i = 0; i < users.length && index < MAX_ITEMS_IN_LIST; i++) {
|
for (var i = 0; i < users.length && index < MAX_ITEMS_IN_LIST; i++) {
|
||||||
if (this.alreadyMentioned(users[i].username)) continue;
|
if (this.alreadyMentioned(users[i].username)) continue;
|
||||||
|
|
||||||
if (users[i].first_name.lastIndexOf(mentionText,0) === 0
|
if ((users[i].first_name && users[i].first_name.lastIndexOf(mentionText,0) === 0)
|
||||||
|| users[i].last_name.lastIndexOf(mentionText,0) === 0 || users[i].username.lastIndexOf(mentionText,0) === 0) {
|
|| (users[i].last_name && users[i].last_name.lastIndexOf(mentionText,0) === 0) || users[i].username.lastIndexOf(mentionText,0) === 0) {
|
||||||
mentions[index] = (
|
mentions[index] = (
|
||||||
<Mention
|
<Mention
|
||||||
ref={'mention' + index}
|
ref={'mention' + index}
|
||||||
|
|||||||
@@ -42,6 +42,9 @@
|
|||||||
}
|
}
|
||||||
config.SiteName = '{{ .SiteName }}';
|
config.SiteName = '{{ .SiteName }}';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<script src="/static/js/bundle.js"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
if (config.LogglyWriteKey != null && config.LogglyWriteKey !== "") {
|
if (config.LogglyWriteKey != null && config.LogglyWriteKey !== "") {
|
||||||
var _LTracker = _LTracker || [];
|
var _LTracker = _LTracker || [];
|
||||||
@@ -101,7 +104,5 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<!-- Snowplow stops plowing -->
|
<!-- Snowplow stops plowing -->
|
||||||
|
|
||||||
<script src="/static/js/bundle.js"></script>
|
|
||||||
</head>
|
</head>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user