mirror of
				https://github.com/inventree/inventree-app.git
				synced 2025-10-29 20:40:35 +00:00 
			
		
		
		
	Bug fix for API forms
This commit is contained in:
		| @@ -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)); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user