firecmsco / firecms

Awesome Firebase/Firestore-based CMS. The missing admin panel for your Firebase project!
https://firecms.co
Other
1.13k stars 185 forks source link

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

Open iavina opened 8 months ago

iavina commented 8 months ago

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"]
            }
        })),