Skip to content

Expression validation fails when using component #3741

@olemartinorg

Description

@olemartinorg

In v4.21+ expression validation fails to check if a component is hidden when using component lookups to look up components inside repeating groups. This was caused by #3538 not properly refactoring ExpressionValidation to wrap things with DataModelLocationProvider before calling useExpressionDataSources(), thus lookups for which components are hidden failed to find the component inside the repeating group row.

Source: https://digdir-samarbeid.slack.com/archives/C02EJ9HKQA3/p1758525937863449

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/logicrelated to logic/dynamics/expressionssquad/utformingIssues that belongs to the named squad.

    Type

    Projects

    Status

    No status

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions