mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-06-08 15:47:47 +00:00
Small fix
This commit is contained in:
parent
6fcd03f899
commit
e2ea7ba51a
1 changed files with 2 additions and 2 deletions
|
@ -2025,8 +2025,8 @@ class ApiClient {
|
||||||
),
|
),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
if (result[0]['hasResponse'] == true && result[0]['hasResponse'] == true) {
|
if (result[0]['hasResponse'] == true && result[1]['hasResponse'] == true) {
|
||||||
if (result[0]['statusCode'] == 200 && result[0]['statusCode'] == 200) {
|
if (result[0]['statusCode'] == 200 && result[1]['statusCode'] == 200) {
|
||||||
final Map<String, dynamic> obj = {
|
final Map<String, dynamic> obj = {
|
||||||
...jsonDecode(result[0]['body']),
|
...jsonDecode(result[0]['body']),
|
||||||
'current_version': jsonDecode(result[1]['body'])['version']
|
'current_version': jsonDecode(result[1]['body'])['version']
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue