FIX: user_id attribute not found in posters array
This commit is contained in:
parent
60c1cd9f81
commit
096974d178
|
@ -78,7 +78,7 @@ const Topic = RestModel.extend({
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const poster_ids = _.pluck(posters, "user_id");
|
const poster_ids = posters.map(p => p.user && p.user.id).filter(id => id);
|
||||||
participants.some(p => {
|
participants.some(p => {
|
||||||
if (!poster_ids.includes(p.user_id)) {
|
if (!poster_ids.includes(p.user_id)) {
|
||||||
users.splice(users.length - pushOffset, 0, p);
|
users.splice(users.length - pushOffset, 0, p);
|
||||||
|
|
Loading…
Reference in New Issue