Fix lint issues

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
Lauri Nevala committed 2021-09-01 11:49:07 +03:00
1 parent 1fa6d000b0
commit 4191bfaca6
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -320,6 +320,7 @@ export class Cluster implements ClusterModel, ClusterState {
*/
async recreateProxyKubeconfig() {
logger.info("Recreate proxy kubeconfig");
try {
this.kubeconfigManager.clear();
} catch {
@@ -43,7 +43,7 @@ export class ClusterHomeDirSetting extends React.Component<Props> {
async componentDidMount() {
const kubeconfig = await this.props.cluster.getKubeconfig();
const defaultNamespace = this.props.cluster.preferences?.defaultNamespace || kubeconfig.getContextObject(this.props.cluster.contextName).namespace
const defaultNamespace = this.props.cluster.preferences?.defaultNamespace || kubeconfig.getContextObject(this.props.cluster.contextName).namespace;
disposeOnUnmount(this,
autorun(() => {