mirror of
https://github.com/inventree/inventree-app.git
synced 2025-07-04 04:40:51 +00:00
Package updates (#365)
* Update dart version * Update flutter version in workflow * Update packages * Updates to android workflow * Specify dart verrsion in CI * Run flutter upgrade * Helps to check which workflow is actually running I guess * Disable linting check * linting fixes * linting * Bug fix for paginator
This commit is contained in:
@ -538,13 +538,7 @@ class APIFormField {
|
||||
final APIResponse response = await InvenTreeAPI().get(api_url, params: _filters);
|
||||
|
||||
if (response.isValid()) {
|
||||
List<dynamic> results = [];
|
||||
|
||||
for (var result in response.data["results"] ?? []) {
|
||||
results.add(result);
|
||||
}
|
||||
|
||||
return results;
|
||||
return response.resultsList();
|
||||
} else {
|
||||
return [];
|
||||
}
|
||||
@ -1334,10 +1328,10 @@ class _APIFormWidgetState extends State<APIFormWidget> {
|
||||
// Ensure the response is a valid JSON structure
|
||||
Map<String, dynamic> json = {};
|
||||
|
||||
if (response.data != null && response.data is Map) {
|
||||
for (dynamic key in response.data.keys) {
|
||||
json[key.toString()] = response.data[key];
|
||||
}
|
||||
var data = response.asMap();
|
||||
|
||||
for (String key in data.keys) {
|
||||
json[key.toString()] = data[key];
|
||||
}
|
||||
|
||||
successFunc(json);
|
||||
|
Reference in New Issue
Block a user