From 24ccf9ce2fdc4b6df7b46fbfb7f8f4f2d133d3dd Mon Sep 17 00:00:00 2001 From: Sergio De la torre Date: Wed, 16 Oct 2024 11:40:13 +0200 Subject: [PATCH] feat: refs #7524 getSuppliers --- .../view/feature/packaging/fragment/SupplierViewModel.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/es/verdnatura/presentation/view/feature/packaging/fragment/SupplierViewModel.kt b/app/src/main/java/es/verdnatura/presentation/view/feature/packaging/fragment/SupplierViewModel.kt index 9b2c92ef..1c1a8be1 100644 --- a/app/src/main/java/es/verdnatura/presentation/view/feature/packaging/fragment/SupplierViewModel.kt +++ b/app/src/main/java/es/verdnatura/presentation/view/feature/packaging/fragment/SupplierViewModel.kt @@ -59,7 +59,8 @@ class SupplierViewModel(val context: Context) : BaseViewModel(context) { val loadEntryAdd: LiveData> = _entryAdd.map { Event(it) } fun getSuppliers() { - salix.getSuppliers().enqueue(object : SalixCallback>(context) { + salix.getWithPackaging( + ).enqueue(object : SalixCallback>(context) { override fun onSuccess(response: Response>) { _supplierList.value = response.body()?.let { SupplierList(it) }