mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
fix: prevent app-crash in preferences in case of incorrect http-proxy value
Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
parent
4b7ddf7741
commit
8889d8c70a
@ -13,7 +13,6 @@ import { Input } from "../input";
|
|||||||
import { Checkbox } from "../checkbox";
|
import { Checkbox } from "../checkbox";
|
||||||
import { Notifications } from "../notifications";
|
import { Notifications } from "../notifications";
|
||||||
import { Badge } from "../badge";
|
import { Badge } from "../badge";
|
||||||
import { Spinner } from "../spinner";
|
|
||||||
import { themeStore } from "../../theme.store";
|
import { themeStore } from "../../theme.store";
|
||||||
import { history } from "../../navigation";
|
import { history } from "../../navigation";
|
||||||
import { Tooltip } from "../tooltip";
|
import { Tooltip } from "../tooltip";
|
||||||
@ -58,7 +57,7 @@ export class Preferences extends React.Component {
|
|||||||
this.helmAddedRepos.clear();
|
this.helmAddedRepos.clear();
|
||||||
repos.forEach(repo => this.helmAddedRepos.set(repo.name, repo));
|
repos.forEach(repo => this.helmAddedRepos.set(repo.name, repo));
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
Notifications.error(err);
|
Notifications.error(String(err));
|
||||||
}
|
}
|
||||||
this.helmLoading = false;
|
this.helmLoading = false;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user