Skip to content

Commit 37a63bb

Browse files
committed
Fix for undefined filters.
1 parent 61695f9 commit 37a63bb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

build/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40253,7 +40253,7 @@ async function notify(notification) {
4025340253
const headers = notification.headers || { 'Content-Type': 'application/json' }
4025440254
const filters = notification.filters || [];
4025540255
// TODO: Support filters tags from the workflow.
40256-
if(notification.filters.length > 0) {
40256+
if(filters.length > 0) {
4025740257
// If we have any filters, skip this notification
4025840258
return;
4025940259
}

src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ async function notify(notification) {
1919
const headers = notification.headers || { 'Content-Type': 'application/json' }
2020
const filters = notification.filters || [];
2121
// TODO: Support filters tags from the workflow.
22-
if(notification.filters.length > 0) {
22+
if(filters.length > 0) {
2323
// If we have any filters, skip this notification
2424
return;
2525
}

0 commit comments

Comments
 (0)