Skip to content

Incomplete safeguard against empty objects in level component (master) #1

@Emprah

Description

@Emprah

I was able to trigger an error by left clicking into a solitary level component without any items in it.

itemNearCursor will be null, but only undefined is catched in line 186:
if (itemNearCursor.current !== undefined && itemNearCursor.nearest !== undefined) {

This later leads to an error in line 472, when items[0] contains null:
start: items[0].samplePoint,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions