Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editing a an array of references in a side panel triggers the document to be updated twice. #596

Open
iavina opened this issue Nov 30, 2023 · 0 comments

Comments

@iavina
Copy link

iavina commented Nov 30, 2023

Editing a an array of references in a side panel triggers the document to be updated twice.
However clicking the arrow on an entity to enter the entity's side panel, and then updating the array from there, correctly only triggers once.
Has someone had this issue? This is how I'm building my property

        categories: buildProperty((entity: any) => ({
            name: "Categories",
            dataType: "array",
            of: {
                dataType: "reference",
                path: entity.path.replace("Products", "Categories"),
                previewProperties: ["name"]
            }
        })),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant