1
0
forked from baron/baron-sso

dev 병합 code-check 오류 수정

This commit is contained in:
2026-04-28 13:23:40 +09:00
parent 6be0914b65
commit eae3e0bd2a
13 changed files with 349 additions and 67 deletions

View File

@@ -174,10 +174,7 @@ function ClientGeneralPage() {
{
id: "2",
name: "tenant",
description: t(
"msg.dev.clients.scopes.tenant",
"소속 테넌트 정보 접근",
),
description: t("msg.dev.clients.scopes.tenant", "소속 테넌트 정보 접근"),
mandatory: false,
},
{
@@ -347,12 +344,15 @@ function ClientGeneralPage() {
return {
...scope,
description: scope.description || tenantScopeDescription,
mandatory: restricted ? true : false,
mandatory: restricted,
locked: restricted,
};
});
if (restricted && !normalized.some((scope) => scope.name.trim() === "tenant")) {
if (
restricted &&
!normalized.some((scope) => scope.name.trim() === "tenant")
) {
normalized.push(buildTenantScope(`tenant-${Date.now()}`));
}
@@ -526,7 +526,8 @@ function ClientGeneralPage() {
const hasValidationErrors = validationErrors.length > 0;
const normalizedTenantSearch = tenantSearch.trim().toLowerCase();
const tenantOptions: Array<TenantSummary | MyTenantSummary> = tenantData ?? [];
const tenantOptions: Array<TenantSummary | MyTenantSummary> =
tenantData ?? [];
const filteredTenants = tenantOptions.filter((tenant) => {
if (!normalizedTenantSearch) {
return true;
@@ -1375,10 +1376,7 @@ function ClientGeneralPage() {
</span>
<button
type="button"
aria-label={t(
"ui.common.delete",
"삭제",
)}
aria-label={t("ui.common.delete", "삭제")}
onClick={() => toggleAllowedTenant(tenant.id)}
className="text-muted-foreground transition hover:text-destructive"
>
@@ -1403,10 +1401,7 @@ function ClientGeneralPage() {
<span className="max-w-44 truncate">{tenantId}</span>
<button
type="button"
aria-label={t(
"ui.common.delete",
"삭제",
)}
aria-label={t("ui.common.delete", "삭제")}
onClick={() => toggleAllowedTenant(tenantId)}
className="text-muted-foreground transition hover:text-destructive"
>