Shun Miyazawa 4 سال پیش
والد
کامیت
6f1a904649
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      packages/app/src/components/Admin/Security/SecuritySetting.jsx

+ 2 - 2
packages/app/src/components/Admin/Security/SecuritySetting.jsx

@@ -43,8 +43,8 @@ class SecuritySetting extends React.Component {
 
     const isRecursiveDeletion = deletionType === DeletionType.RecursiveDeletion || deletionType === DeletionType.RecursiveCompleteDeletion;
 
-    const forceCahge = isRecursiveDeletion && isButtonDisabled && currentState === PageDeleteConfigValue.AdminAndAuthor;
-    if (forceCahge) {
+    const forceChange = isRecursiveDeletion && isButtonDisabled && currentState === PageDeleteConfigValue.AdminAndAuthor;
+    if (forceChange) {
       switch (deletionType) {
         case DeletionType.RecursiveDeletion:
           setState(adminGeneralSecurityContainer.state.currentPageDeletionAuthority);