mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-02 11:39:12 +00:00
Fix Resource Context - Invalid Entity Type being passed (#23164)
This commit is contained in:
parent
65aff8ce8e
commit
643618823a
@ -63,9 +63,10 @@ public class CreateResourceContext<T extends EntityInterface> implements Resourc
|
||||
List<TagLabel> tags = new ArrayList<>();
|
||||
for (EntityInterface parent : parentEntities) {
|
||||
if (parent.getTags() != null) {
|
||||
tags.addAll(Entity.getEntityTags(getResource(), parent));
|
||||
tags.addAll(Entity.getEntityTags(parent.getEntityReference().getType(), parent));
|
||||
}
|
||||
}
|
||||
tags.addAll(Entity.getEntityTags(getResource(), entity));
|
||||
return getUniqueTags(tags);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user