Skip to content

Commit 546f184

Browse files
committed
Fix js error on other post types
1 parent c11d096 commit 546f184

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/bcc-login/src/visibility.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ registerPlugin("bcc-notifications", {
162162
const postType = getCurrentPostType();
163163
const allowedTypes = Array.isArray(window.bccLoginNotificationPostTypes) ? window.bccLoginNotificationPostTypes : [];
164164

165-
const sentNotifications = meta?.sent_notifications.map(notification => {
165+
const sentNotifications = meta?.sent_notifications?.map(notification => {
166166
return {
167167
date: (new Date(notification.date)).toLocaleString(),
168168
no_of_groups: notification.notification_groups.length

0 commit comments

Comments
 (0)