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) && (