Skip to content

Commit

Permalink
[Backend] External reference fail creation as checked attribute is no…
Browse files Browse the repository at this point in the history
…t the good one (#8545)
  • Loading branch information
richard-julien committed Sep 30, 2024
1 parent 9754a5e commit 05a841d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ export const validateDataBeforeIndexing = (element: any) => {

Object.keys(element).forEach((elementKey) => {
const input = element[elementKey];
const attributeSchemaDef = schemaAttributesDefinition.getAttributeByName(elementKey);
const attributeSchemaDef = schemaAttributesDefinition.getAttribute(element.entity_type, elementKey);
if (!attributeSchemaDef) {
return; // no validation to do, happens for meta fields like "_index"
}
Expand Down

0 comments on commit 05a841d

Please sign in to comment.