Skip to content

Commit d2a2b88

Browse files
committed
fix for view notif
1 parent 4a0c57b commit d2a2b88

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

pkg/notifier/NotificationConfigService.go

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -790,14 +790,17 @@ func (impl *NotificationConfigServiceImpl) FindNotificationSettingOptions(settin
790790
}
791791
searchFilterResponse = append(searchFilterResponse, cdMatching)
792792

793-
ciMatching := &beans.SearchFilterResponse{
794-
PipelineType: string(util.CI),
795-
TeamResponse: teamResponse,
796-
AppResponse: appResponse,
797-
EnvResponse: envResponse,
798-
ClusterResponse: clusterResponse,
793+
// functionality for current and future CI pipelines for cluster is not supported
794+
if clusterResponse == nil {
795+
ciMatching := &beans.SearchFilterResponse{
796+
PipelineType: string(util.CI),
797+
TeamResponse: teamResponse,
798+
AppResponse: appResponse,
799+
EnvResponse: envResponse,
800+
ClusterResponse: clusterResponse,
801+
}
802+
searchFilterResponse = append(searchFilterResponse, ciMatching)
799803
}
800-
searchFilterResponse = append(searchFilterResponse, ciMatching)
801804
}
802805

803806
if searchFilterResponse == nil {

0 commit comments

Comments
 (0)