catalog-backend: fix relations compat flag not being applied
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -216,7 +216,7 @@ export async function createRouter(
|
||||
signal.throwIfAborted();
|
||||
|
||||
if (!disableRelationsCompatibility) {
|
||||
processEntitiesResponseItems(
|
||||
result.items = processEntitiesResponseItems(
|
||||
result.items,
|
||||
expandLegacyCompoundRelationsInEntity,
|
||||
);
|
||||
|
||||
@@ -39,7 +39,7 @@ export function processRawEntitiesResult(
|
||||
export function processEntitiesResponseItems(
|
||||
response: EntitiesResponseItems,
|
||||
transform?: (entity: Entity) => Entity,
|
||||
) {
|
||||
): EntitiesResponseItems {
|
||||
if (!transform) {
|
||||
return response;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user