summaryrefslogtreecommitdiffstats
path: root/client/components/main
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2018-10-03 17:46:00 +0300
committerLauri Ojansivu <x@xet7.org>2018-10-03 17:46:00 +0300
commit2206c5c84cdf8241e763fc23eceba26254de15e7 (patch)
tree4603710a695c2bfb398116c1708992ce47032478 /client/components/main
parent5b8c642d8fb16e00000a1d92bcd3a5c6bbd07bce (diff)
downloadwekan-2206c5c84cdf8241e763fc23eceba26254de15e7.tar.gz
wekan-2206c5c84cdf8241e763fc23eceba26254de15e7.tar.bz2
wekan-2206c5c84cdf8241e763fc23eceba26254de15e7.zip
- Fix Card URL https://github.com/wekan/wekan/pull/1932/files
Thanks to schulz !
Diffstat (limited to 'client/components/main')
-rwxr-xr-xclient/components/main/editor.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/client/components/main/editor.js b/client/components/main/editor.js
index 888fbe00..20ece562 100755
--- a/client/components/main/editor.js
+++ b/client/components/main/editor.js
@@ -38,7 +38,10 @@ 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;
+ const u = Users.findOne(member.userId);
+ if(u){
+ member.username = u.username;
+ }
return member;
});
const mentionRegex = /\B@([\w.]*)/gi;