Object is possibly 'undefined'.
120 | const segments: Segment[] | undefined = this.segments
121 | if (segments.length) {
> 122 | segments.find ((s) => {
| ^
123 | return s.code === code
124 | }).title
125 | }else {
замени segment.length на segments && segments.length
Обсуждают сегодня