Rename entityPresentation parameter to entityPresentationApi for consistency

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Fredrik Adelöw <freben@spotify.com>
This commit is contained in:
Fredrik Adelöw
2026-03-30 20:57:39 +02:00
parent e5af44c846
commit 5bc450b7f1
7 changed files with 31 additions and 31 deletions
@@ -37,7 +37,7 @@ export function entitiesToDocsMapper(
entities: Entity[],
getRouteToReaderPageFor: getRouteFunc,
config: ConfigApi,
entityPresentation?: EntityPresentationApi,
entityPresentationApi?: EntityPresentationApi,
) {
return entities.map(entity => {
const ownedByRelations = getEntityRelations(entity, RELATION_OWNED_BY);
@@ -55,8 +55,8 @@ export function entitiesToDocsMapper(
ownedByRelations,
ownedByRelationsTitle: ownedByRelations
.map(r => {
if (entityPresentation) {
return entityPresentation.forEntity(stringifyEntityRef(r), {
if (entityPresentationApi) {
return entityPresentationApi.forEntity(stringifyEntityRef(r), {
defaultKind: 'group',
}).snapshot.primaryTitle;
}