From 661c9dbb2b63ccef33499865c044267222725234 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=90=B4=E7=94=9C?= <759644414@qq.com>
Date: Mon, 6 Jan 2025 14:22:53 +0800
Subject: [PATCH] fix Deletion protection checkbox show in tenant detail
---
.../Tenant/Detail/Overview/BasicInfo.tsx | 45 +++++++++----------
1 file changed, 22 insertions(+), 23 deletions(-)
diff --git a/ui/src/pages/Tenant/Detail/Overview/BasicInfo.tsx b/ui/src/pages/Tenant/Detail/Overview/BasicInfo.tsx
index 7462440a..0da8bcb2 100644
--- a/ui/src/pages/Tenant/Detail/Overview/BasicInfo.tsx
+++ b/ui/src/pages/Tenant/Detail/Overview/BasicInfo.tsx
@@ -126,29 +126,28 @@ export default function BasicInfo({
);
})}
- {deletionProtection && (
-
- {
- const body = {} as API.ParamPatchTenant;
- if (!e.target.checked) {
- body.removeDeletionProtection = true;
- } else {
- body.addDeletionProtection = true;
- }
- patchTenant(ns, name, body);
- }}
- />
-
- )}
+
+
+ {
+ const body = {} as API.ParamPatchTenant;
+ if (!e.target.checked) {
+ body.removeDeletionProtection = true;
+ } else {
+ body.addDeletionProtection = true;
+ }
+ patchTenant(ns, name, body);
+ }}
+ />
+
{checkSource(source) && (