Skip to content

Can't create results table for every team #70

Open
@Lyannic

Description

@Lyannic

The results table for https://liga.99damage.de/leagues/teams/55410-onyx-talents can't be created. For me, the background script throws a console error
Screenshot from 2021-10-28 11-55-49
It indicated that the error is in line

match.draftMaps.find(function(draftMap)

of

var getMatchTableItems = function getMatchTableItems(match, division) {
    var season = (0,
    _selectors__WEBPACK_IMPORTED_MODULE_5__.getSeason)(division.url);
    if (match.scores.length === 0) {
        return [_objectSpread(_objectSpread({}, match), {}, {
            division: division
        }, season && {
            season: season
        })];
    }
    return match.scores.map(function(score, index) {
        return _objectSpread(_objectSpread(_objectSpread({}, match), {}, {
            division: division,
            score1: score.score1,
            score2: score.score2
        }, season && {
            season: season
        }), {}, {
            map: match.draftMaps.find(function(draftMap) {
                return draftMap.id === match.draftMapvotingPicks[index];
            })
        });
    });
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions