Explorar el Código

fe w/ optional user update params

jusrhee hace 5 años
padre
commit
c47ce937a6
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      dashboard/src/main/home/modals/ClusterConfigModal.tsx

+ 3 - 3
dashboard/src/main/home/modals/ClusterConfigModal.tsx

@@ -137,7 +137,7 @@ export default class ClusterConfigModal extends Component<PropsType, StateType>
   }
 
   handleSaveSelected = () => {
-    let { clusters, selected, rawKubeconfig } = this.state;
+    let { clusters, selected } = this.state;
     let { userId } = this.context;
 
     this.setState({ saveSelectedStatus: 'loading' });
@@ -149,10 +149,10 @@ export default class ClusterConfigModal extends Component<PropsType, StateType>
     });
 
     console.log(allowedClusters);
-
+    
     api.updateUser(
       '<token>',
-      { rawKubeConfig: rawKubeconfig, allowedClusters },
+      { allowedClusters },
       { id: userId },
       (err: any, res: any) => {
         if (err) {