fix: Change JSON parsing for Digital Ocean droplets

pull/213/head
NaiJi ✨ 2023-06-13 23:47:06 -03:00
parent 65283306a9
commit 2b1f6a12ea
1 changed files with 1 additions and 1 deletions

View File

@ -495,7 +495,7 @@ class DigitalOceanApi extends ServerProviderApi with VolumeProviderApi {
final Dio client = await getClient();
try {
final Response response = await client.get('/droplets');
servers = response.data;
servers = response.data['droplets'];
} catch (e) {
print(e);
return GenericResult(