3
0
Fork 0

Default hostmaps to []

This commit is contained in:
Nate Brown 2020-08-31 16:59:38 -05:00
parent 38389e99d4
commit d9f4b8b56d
1 changed files with 6 additions and 0 deletions

View File

@ -206,6 +206,9 @@ class Site {
Future<List<HostInfo>> listHostmap() async { Future<List<HostInfo>> listHostmap() async {
try { try {
var ret = await platform.invokeMethod("active.listHostmap", <String, String>{"id": id}); var ret = await platform.invokeMethod("active.listHostmap", <String, String>{"id": id});
if (ret == null) {
return [];
}
List<dynamic> f = jsonDecode(ret); List<dynamic> f = jsonDecode(ret);
List<HostInfo> hosts = []; List<HostInfo> hosts = [];
@ -226,6 +229,9 @@ class Site {
Future<List<HostInfo>> listPendingHostmap() async { Future<List<HostInfo>> listPendingHostmap() async {
try { try {
var ret = await platform.invokeMethod("active.listPendingHostmap", <String, String>{"id": id}); var ret = await platform.invokeMethod("active.listPendingHostmap", <String, String>{"id": id});
if (ret == null) {
return [];
}
List<dynamic> f = jsonDecode(ret); List<dynamic> f = jsonDecode(ret);
List<HostInfo> hosts = []; List<HostInfo> hosts = [];