Skip to content

Exception if #purl is not available #308

Description

@peschuster

When a component has no "#purl" (e.g. no version is set), the following line raises an exception:

if (this.#purl || other.#purl) { return this.#purl.localeCompare(other.#purl) }

I'd suggest using && rather than || to fallback to other properties of the module for comparison, if one or the other component has no purl.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions