Skip to content

Commit 354c0a7

Browse files
committed
Fixed Flutter app
1 parent 9be8811 commit 354c0a7

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

flutter/lib/pages/product_add_edit.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,11 @@ class _ProductAddEditState extends State<ProductAddEdit> {
158158
isApiCallProcess = true;
159159
});
160160

161-
APIService.saveProduct(productModel!, isEditMode).then(
161+
APIService.saveProduct(
162+
productModel!,
163+
isEditMode,
164+
isImageSelected,
165+
).then(
162166
(response) {
163167
setState(() {
164168
isApiCallProcess = false;

flutter/lib/services/api_service.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class APIService {
4040
bool isEditMode,
4141
bool isFileSelected,
4242
) async {
43-
var productURL = Config.productURL;
43+
var productURL = Config.productsAPI;
4444

4545
if (isEditMode) {
4646
productURL = productURL + "/" + model.id.toString();

0 commit comments

Comments
 (0)