Skip to content

TypeError: Cannot read properties of undefined (reading 'includes') - getTeam.js #822

Description

@mavrick

team id: 12642
https://www.hltv.org/team/12642/rebels
node: 20.11.1
hltv: 3.5.0

\node_modules\hltv\lib\endpoints\getTeam.js:64
logo = logoSrc.includes('placeholder.svg') ? undefined : logoSrc;
^

TypeError: Cannot read properties of undefined (reading 'includes')
at \node_modules\hltv\lib\endpoints\getTeam.js:64:40
at step (\node_modules\hltv\lib\endpoints\getTeam.js:33:23)
at Object.next (\node_modules\hltv\lib\endpoints\getTeam.js:14:53)
at fulfilled (\node_modules\hltv\lib\endpoints\getTeam.js:5:58)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

related: #821

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions