diff --git a/packages/server/src/utilities/rowProcessor/index.ts b/packages/server/src/utilities/rowProcessor/index.ts index 44cab4d18b..4b6e0f6e87 100644 --- a/packages/server/src/utilities/rowProcessor/index.ts +++ b/packages/server/src/utilities/rowProcessor/index.ts @@ -216,7 +216,10 @@ export async function outputProcessing( } } if (opts.squash) { - enriched = await linkRows.squashLinksToPrimaryDisplay(table, enriched) + enriched = (await linkRows.squashLinksToPrimaryDisplay( + table, + enriched + )) as Row[] } return wasArray ? enriched : enriched[0] }