mirror of
https://github.com/wger-project/flutter.git
synced 2026-12-05 04:57:37 +01:00
Fix type error that prevented an image from being edited
This commit is contained in:
@@ -89,7 +89,7 @@ class GalleryProvider extends WgerBaseProvider with ChangeNotifier {
|
||||
|
||||
// Update image info
|
||||
final data = image.toJson();
|
||||
request.fields['id'] = data['id'];
|
||||
request.fields['id'] = data['id'].toString();
|
||||
request.fields['date'] = data['date'];
|
||||
request.fields['description'] = data['description'];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user