This commit is contained in:
Scott E. Graves 2025-03-24 11:53:03 -05:00
parent 6244a587db
commit b72baf2c65

View File

@ -119,15 +119,7 @@ class Mount with ChangeNotifier {
return <String>[]; return <String>[];
} }
List<String> ret = []; return (jsonDecode(response.body) as List).cast<String>();
{
final list = jsonDecode(response.body) as List;
for (var item in list) {
ret.add(item as String);
}
}
return ret;
} catch (e) { } catch (e) {
debugPrint('$e'); debugPrint('$e');
} }