Skip to content

The new find filter doesn't work as expected on paginated arrays #1941

@mironov

Description

@mironov

By default, product.variants are limited to 250 variants. When you use the find filter on this array, it only searches within those first 250 variants instead of all variants of the product.

For example:

assign variant = product.variants | find: 'id', variant_id
echo variant

This code will only work if the variant_id is within the first 250 variants.

Is this a known limitation?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions