Add variancy information to reference response model (#18645)

* Made variant info available on DocumentReferenceResponseModel

* Fix scope issue

* PR Feedback + correct scoping
This commit is contained in:
Sven Geusens
2025-03-24 12:10:30 +01:00
committed by GitHub
parent 30633fe728
commit 39cad5b2ea
4 changed files with 81 additions and 13 deletions

View File

@@ -16,7 +16,7 @@ public class TrackedReferenceViewModelsMapDefinition : IMapDefinition
mapper.Define<Guid, ReferenceByIdModel>((source, context) => new ReferenceByIdModel(), Map);
}
// Umbraco.Code.MapAll
// Umbraco.Code.MapAll -Variants
private void Map(RelationItemModel source, DocumentReferenceResponseModel target, MapperContext context)
{
target.Id = source.NodeKey;