Skip to content

Bug: Code errors if no award matches awardID #5

Description

@jpmckinney

If this finds no award:

let award = record.awards.filter( (award) => award.id == award_id )[0];

This fails:

award.suppliers.map( (supplier) => supplier_ids.push(supplier.id) );

There should be an if-statement around the above to check that an award was found.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions