mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 11:36:24 +00:00
Bug fix for API forms
This commit is contained in:
parent
a9b96f22a3
commit
94cca19ccc
1 changed files with 2 additions and 8 deletions
|
|
@ -625,14 +625,8 @@ Future<void> launchApiForm(BuildContext context, String title, String url, Map<S
|
|||
}
|
||||
}
|
||||
|
||||
// Update fields with existing model data
|
||||
for (String key in modelData.keys) {
|
||||
|
||||
dynamic value = modelData[key];
|
||||
|
||||
if (availableFields.containsKey(key)) {
|
||||
availableFields[key]["value"] = value;
|
||||
}
|
||||
if (modelData.containsKey(fieldName)) {
|
||||
remoteField["value"] = modelData[fieldName];
|
||||
}
|
||||
|
||||
formFields.add(APIFormField(fieldName, remoteField));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue