File tree Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ export default {
114114
115115 if ( this . keyword ) {
116116 notes = notes . filter ( ( note ) =>
117- note . content . toLowerCase ( ) . includes ( this . keyword . toLowerCase ( ) ) ) ;
117+ note . content ? .toLowerCase ( ) . includes ( this . keyword . toLowerCase ( ) ) ) ;
118118 }
119119
120120 let result = {
Original file line number Diff line number Diff line change @@ -145,21 +145,21 @@ export default {
145145 sort : this . sortField
146146 ? `${ this . sortField } ${ this . sortDirection } `
147147 : undefined ,
148- pinned_to_lead_flag : this . pinnedToLeadFlag
148+ pinned_to_lead_flag : this . pinnedToLeadFlag === true
149149 ? 1
150- : 0 ,
151- pinned_to_deal_flag : this . pinnedToDealFlag
150+ : undefined ,
151+ pinned_to_deal_flag : this . pinnedToDealFlag === true
152152 ? 1
153- : 0 ,
154- pinned_to_organization_flag : this . pinnedToOrganizationFlag
153+ : undefined ,
154+ pinned_to_organization_flag : this . pinnedToOrganizationFlag === true
155155 ? 1
156- : 0 ,
157- pinned_to_person_flag : this . pinnedToPersonFlag
156+ : undefined ,
157+ pinned_to_person_flag : this . pinnedToPersonFlag === true
158158 ? 1
159- : 0 ,
160- pinned_to_project_flag : this . pinnedToProjectFlag
159+ : undefined ,
160+ pinned_to_project_flag : this . pinnedToProjectFlag === true
161161 ? 1
162- : 0 ,
162+ : undefined ,
163163 start_date : this . startDate ,
164164 end_date : this . endDate ,
165165 } ,
@@ -168,7 +168,7 @@ export default {
168168
169169 if ( this . searchTerm ) {
170170 notes = notes . filter ( ( note ) =>
171- note . content . toLowerCase ( ) . includes ( this . searchTerm . toLowerCase ( ) ) ) ;
171+ note . content ? .toLowerCase ( ) . includes ( this . searchTerm . toLowerCase ( ) ) ) ;
172172 }
173173
174174 $ . export ( "$summary" , `Successfully found ${ notes . length } note${ notes . length === 1
Original file line number Diff line number Diff line change @@ -443,7 +443,7 @@ export default {
443443 start : 0 ,
444444 limit : 100 ,
445445 } ;
446- let hasMore , count = 0 ; ;
446+ let hasMore , count = 0 ;
447447 do {
448448 const {
449449 data, additional_data : additionalData ,
You can’t perform that action at this time.
0 commit comments