mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
nova:subscribe - fix exception in category's callback when a post isn't assigned to a category
This commit is contained in:
parent
15f854fa6f
commit
11d7524798
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ if (typeof Package['nova:posts'] !== "undefined") {
|
|||
|
||||
const SubscribedCategoriesNotifications = (post) => {
|
||||
|
||||
if (typeof Telescope.notifications !== "undefined" && Meteor.isServer && !!post.categories.length) {
|
||||
if (typeof Telescope.notifications !== "undefined" && Meteor.isServer && !!post.categories && !!post.categories.length) {
|
||||
// get the subscribers of the different categories from the post's categories
|
||||
const subscribers = post.categories
|
||||
// find the category from its id
|
||||
|
|
Loading…
Add table
Reference in a new issue