mirror of
https://github.com/inventree/inventree-app.git
synced 2025-04-28 05:26:47 +00:00
Bug fix for API forms
This commit is contained in:
parent
a9b96f22a3
commit
94cca19ccc
@ -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…
x
Reference in New Issue
Block a user