diff --git a/devfront/src/features/overview/recentClientChanges.ts b/devfront/src/features/overview/recentClientChanges.ts index c5930c27..b331346d 100644 --- a/devfront/src/features/overview/recentClientChanges.ts +++ b/devfront/src/features/overview/recentClientChanges.ts @@ -274,21 +274,23 @@ export function buildRecentClientChangeDetails( } if (action === "ADD_RELATION" || action === "REMOVE_RELATION") { - const source = sourceDetails; + const source = sourceDetails as Record; + const relation = source.relation; + const subject = source.subject; return [ - ...(source.relation + ...(typeof relation === "string" && relation ? [ { label: getRecentClientFieldLabel("relation"), - value: formatAuditValue(source.relation), + value: formatAuditValue(relation), }, ] : []), - ...(source.subject + ...(typeof subject === "string" && subject ? [ { label: getRecentClientFieldLabel("subject"), - value: formatAuditValue(source.subject), + value: formatAuditValue(subject), }, ] : []),