1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fix lint issues

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

View File

@ -222,7 +222,7 @@ export class Cluster implements ClusterModel, ClusterState {
* @computed
* @internal
*/
@computed get defaultNamespace(): string {
@computed get defaultNamespace(): string {
const { defaultNamespace } = this.preferences;
return defaultNamespace;
@ -320,6 +320,7 @@ export class Cluster implements ClusterModel, ClusterState {
*/
async recreateProxyKubeconfig() {
logger.info("Recreate proxy kubeconfig");
try {
this.kubeconfigManager.clear();
} catch {

View File

@ -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(() => {