Skip to content

[Bug] Predicate Name #188

@lentel27

Description

@lentel27

Predicate name cannot be changed

At the moment, it is not possible to rename a predicate. As soon as you start typing or removing characters, the input field immediately turns red.

After doing a bit of investigation, I noticed that in LDLib – ResourceContainer#308 the validation check does not invert the boolean value:

if (selected.map(...)) { ... }

However, in PredicateResourceContainer#97, this check is inverted, which prevents changing the name to a new value different from the old one:

if (!selected.map(...)) { ... }

I removed this boolean inversion via a mixin, and the issue was resolved.

Unfortunately, I don’t have the ability to create a PR at the moment, so I’m reporting this as an issue.

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