Skip to content

Commit

Permalink
fix: 自定义告警选择全局dataid事件源后,策略预览filter_dict带上了无效的event_name=空字符串的过滤条件 --…
Browse files Browse the repository at this point in the history
…bug=130691477 (#2998)
  • Loading branch information
JayCC1 authored Sep 14, 2024
1 parent 4cf1a6a commit 942e48b
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -488,8 +488,11 @@ export default class StrategyChart extends tsc<IProps, IEvent> {
}
return pre;
}, {});

if (dataSourceLabel === 'custom' && dataTypeLabel === 'event') {
if (
dataSourceLabel === 'custom' &&
dataTypeLabel === 'event' &&
!typeTools.isNull(custom_event_name)
) {
fieldDict.event_name = custom_event_name;
}
return fieldDict;
Expand Down

0 comments on commit 942e48b

Please sign in to comment.