-
Notifications
You must be signed in to change notification settings - Fork 0
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
References are lost due to incorrect merge during creation of schema list #31
Comments
Thanks @Chaitrasaurav , for raising this issue. Once the problem has been resolved, we'll notify you. |
Any update on this? @aman19K |
Hi @idmedia-kaiser we will be releasing this on by 14th October |
Hi @cs-raj @harshithad0703 as I mentioned in #35 only replacing |
Example would be
Gives you
Same without the customizer
gives you
|
@cs-raj @aman19K Should this issue now be fixed , as I saw the PR was modified as requested and merged two weeks ago. ? |
Yes the issue should be fix now |
@cs-raj Can you please comment on my question, why this code block |
Hi @idmedia-kaiser we are checking this internally for the time being please don't use the latest version |
Hi @idmedia-kaiser Could you also check this review comment |
Hi @idmedia-kaiser we will be releasing the 09-01-2025. We were not able to release it early due to freeze period. |
Hello,
We encountered a problem while testing one of our components and traced it back to this file: GitHub link. The issue arises from the merging of lodash, which doesn't merge arrays as expected. You can find more details on the issue here.
Example interface:
Below is the screenshot of schema created:
As you can see, both "deals" and "teaser" contain "content". When the schema is merged, it only retains the last "content", causing one of the references to be lost.
Our suggested fix, which worked for us while testing:
entryReferences = (0, lodash_1.mergeWith)(entryReferences, schema[this.types.references], (obj, src) => { if (lodash_1.isArray(obj)) { return Array.from(new Set(obj.concat(src))); } } );
Please let me know if this isn't clear. We can arrange a meeting to discuss the issue in more detail if needed. Thank you!
Regards,
Chaitra
The text was updated successfully, but these errors were encountered: