Skip to content
Snippets Groups Projects
Commit c2625e5a authored by Markin Igor's avatar Markin Igor
Browse files

Fix null initial host.

parent bcc816c9
No related branches found
No related tags found
1 merge request!1Mobile app initial implementation.
This commit is part of merge request !1. Comments created here will be created in the context of that merge request.
......@@ -25,9 +25,11 @@ class _HomeState extends State<Home> {
@override
initState() {
super.initState();
setState(() {
_host = widget.host;
});
if (widget.host != null) {
setState(() {
_host = widget.host;
});
}
showMode(widget.mode);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment