refactor: update getSDUIForm method to require token parameter, enhance error handling in SDUIFormWidget, and clean up code formatting across various files

This commit is contained in:
2026-01-06 15:59:42 +03:30
parent 0f0fa8da09
commit 17f8a2d79b
9 changed files with 26 additions and 26 deletions

View File

@@ -29,7 +29,9 @@ class NewPageLogic extends GetxController {
Future<void> getSDUIForm() async {
await safeCall(
call: () async => await rootLogic.vetFarmRepository.getSDUIForm(),
call: () async => await rootLogic.vetFarmRepository.getSDUIForm(
token: rootLogic.tokenService.accessToken.value ?? '',
),
onSuccess: (result) {
if (result.data != null) {
try {