1
0
forked from baron/baron-sso

recent changes 관계 상세 타입 수정

This commit is contained in:
2026-06-16 16:03:39 +09:00
parent d30a324293
commit 072a982b5a

View File

@@ -274,21 +274,23 @@ export function buildRecentClientChangeDetails(
} }
if (action === "ADD_RELATION" || action === "REMOVE_RELATION") { if (action === "ADD_RELATION" || action === "REMOVE_RELATION") {
const source = sourceDetails; const source = sourceDetails as Record<string, unknown>;
const relation = source.relation;
const subject = source.subject;
return [ return [
...(source.relation ...(typeof relation === "string" && relation
? [ ? [
{ {
label: getRecentClientFieldLabel("relation"), label: getRecentClientFieldLabel("relation"),
value: formatAuditValue(source.relation), value: formatAuditValue(relation),
}, },
] ]
: []), : []),
...(source.subject ...(typeof subject === "string" && subject
? [ ? [
{ {
label: getRecentClientFieldLabel("subject"), label: getRecentClientFieldLabel("subject"),
value: formatAuditValue(source.subject), value: formatAuditValue(subject),
}, },
] ]
: []), : []),