forked from baron/baron-sso
recent changes 관계 상세 타입 수정
This commit is contained in:
@@ -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),
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
: []),
|
: []),
|
||||||
|
|||||||
Reference in New Issue
Block a user