summaryrefslogtreecommitdiffstats
path: root/client/components/main/editor.js
diff options
context:
space:
mode:
authorSchulz <lvivwebdevelopment@gmail.com>2018-10-03 15:58:17 +0300
committerSchulz <lvivwebdevelopment@gmail.com>2018-10-03 15:58:17 +0300
commitf8b89129a308718b9676d3fa9743ce4655507f42 (patch)
treec77e209f89a96a9010f0a7b4e622804dc5ae5767 /client/components/main/editor.js
parent1d803d4b5185f6941d3589a48e355f04e8538f55 (diff)
downloadwekan-f8b89129a308718b9676d3fa9743ce4655507f42.tar.gz
wekan-f8b89129a308718b9676d3fa9743ce4655507f42.tar.bz2
wekan-f8b89129a308718b9676d3fa9743ce4655507f42.zip
Card url fixed
Diffstat (limited to 'client/components/main/editor.js')
-rwxr-xr-xclient/components/main/editor.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/client/components/main/editor.js b/client/components/main/editor.js
index 888fbe00..695c2e84 100755
--- a/client/components/main/editor.js
+++ b/client/components/main/editor.js
@@ -38,8 +38,11 @@ Blaze.Template.registerHelper('mentions', new Template('mentions', function() {
const view = this;
const currentBoard = Boards.findOne(Session.get('currentBoard'));
const knowedUsers = currentBoard.members.map((member) => {
- member.username = Users.findOne(member.userId).username;
- return member;
+ const u = Users.findOne(member.userId);
+ if(u){
+ member.username = u.username;
+ }
+ return member;
});
const mentionRegex = /\B@([\w.]*)/gi;
let content = Blaze.toHTML(view.templateContentBlock);