Skip to content

Commit b425ed6

Browse files
committed
Use correct context for notifications
1 parent b60ade1 commit b425ed6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/js/bootstrap.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ window.ProcessMaker = {
142142
* @returns {void}
143143
*/
144144
pushNotification(notification) {
145-
if (this.notifications.filter((x) => x.id === notification).length === 0) {
146-
this.notifications.push(notification);
145+
if (window.ProcessMaker.notifications.filter((x) => x.id === notification).length === 0) {
146+
window.ProcessMaker.notifications.push(notification);
147147
}
148148
},
149149

0 commit comments

Comments
 (0)