mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 04:57:07 -04:00
Fix undefined list at activities / watchers
This commit is contained in:
parent
926b617f33
commit
25a2ad1144
1 changed files with 6 additions and 4 deletions
|
@ -153,11 +153,13 @@ if (Meteor.isServer) {
|
|||
}
|
||||
if (activity.listId) {
|
||||
const list = activity.list();
|
||||
if (list.watchers !== undefined) {
|
||||
watchers = _.union(watchers, list.watchers || []);
|
||||
if (list) {
|
||||
if (list.watchers !== undefined) {
|
||||
watchers = _.union(watchers, list.watchers || []);
|
||||
}
|
||||
params.list = list.title;
|
||||
params.listId = activity.listId;
|
||||
}
|
||||
params.list = list.title;
|
||||
params.listId = activity.listId;
|
||||
}
|
||||
if (activity.oldListId) {
|
||||
const oldList = activity.oldList();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue