Skip to content
This repository was archived by the owner on Apr 10, 2026. It is now read-only.
This repository was archived by the owner on Apr 10, 2026. It is now read-only.

Can't create results table for every team #70

Open

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];
            })
        });
    });
};

Activity

  1. changed the title [-]Results table isn't created for all teams[/-] [+]Can't create results table for every team[/+] on Oct 28, 2021
  2. timonla commented on Oct 28, 2021

    @timonla
    Member

    I guess this field is optional.

    draft_maps: DraftMap[];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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