Skip to content

Commit bbdc534

Browse files
authored
Fix: slack alert empty body (#685)
- fix an issue where select query does not work correctly ref: hdx-1476
1 parent a9dfa14 commit bbdc534

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/api/src/tasks/checkAlerts.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ export const renderAlertTemplate = async ({
494494
displayType: DisplayType.Search,
495495
dateRange: [startTime, endTime],
496496
from: source.from,
497-
select: savedSearch.select ?? source.defaultTableSelectExpression,
497+
select: savedSearch.select || source.defaultTableSelectExpression || '', // remove alert body if there is no select and defaultTableSelectExpression
498498
where: savedSearch.where,
499499
whereLanguage: savedSearch.whereLanguage,
500500
implicitColumnExpression: source.implicitColumnExpression,

0 commit comments

Comments
 (0)