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