fix catch error
This commit is contained in:
parent
4f35d67b02
commit
3dc941ba4c
|
@ -212,7 +212,7 @@ class PetsPageModel extends FlutterFlowModel<PetsPageWidget> {
|
|||
clearFields();
|
||||
onUpdatePet?.call();
|
||||
switchTab(1);
|
||||
}).catchError((error) {
|
||||
}).onError((error, stack) {
|
||||
log(error.toString());
|
||||
DialogUtil.errorDefault(buildContext!);
|
||||
});
|
||||
|
@ -249,7 +249,7 @@ class PetsPageModel extends FlutterFlowModel<PetsPageWidget> {
|
|||
));
|
||||
clearFields();
|
||||
onRegisterPet?.call();
|
||||
}).catchError((error) {
|
||||
}).onError((error, stack) {
|
||||
DialogUtil.errorDefault(buildContext!);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue