Procházet zdrojové kódy

changed the format of ' if '

kaoritokashiki před 6 roky
rodič
revize
695b8ef3c3
1 změnil soubory, kde provedl 6 přidání a 5 odebrání
  1. 6 5
      src/client/js/services/AdminUsersContainer.js

+ 6 - 5
src/client/js/services/AdminUsersContainer.js

@@ -48,12 +48,13 @@ export default class AdminUsersContainer extends Container {
     if (this.isSelected(statusType)) {
       this.deleteStatusFromList(statusType);
     }
-    else if (statusType === all) {
-      this.clearStatusList();
-      this.addStatusToList(statusType);
-    }
     else {
-      this.deleteStatusFromList(all);
+      if (statusType === all) {
+        this.clearStatusList();
+      }
+      else {
+        this.deleteStatusFromList(all);
+      }
       this.addStatusToList(statusType);
     }
   }