File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 3030 (item ) => item .login === (notification .creator ?.login || notification .author ?.login )
3131 );
3232
33- const searched = notification .title .toLowerCase ().includes (search .toLowerCase ());
33+ const searched = notification .title ? .toLowerCase ().includes (search .toLowerCase ());
3434 const isOfType = $typeFilters .some (
3535 (filter ) => filter .active && filter .type === notification .type
3636 );
Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ export async function createGitlabNotificationData(
206206 ...textData ,
207207 type : 'commit' ,
208208 icon : 'commit' ,
209- title : firstEvent . push_data . commit_title
209+ title : firstEvent . push_data . commit_title ?? ''
210210 } ;
211211 } else {
212212 value = {
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ export type GitlabEvent = {
5050 push_data : {
5151 action : 'created' | 'pushed' ;
5252 commit_count : number ;
53- commit_title : string ;
53+ commit_title : string | null ;
5454 ref : string ;
5555 ref_type : 'branch' | 'tag' ;
5656 } ;
You can’t perform that action at this time.
0 commit comments