mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-10 10:08:02 -06:00
Fixed bugs, added serialization for documents state
This commit is contained in:
@@ -47,7 +47,7 @@ class DioHttpErrorInterceptor extends Interceptor {
|
||||
errorMessages.putIfAbsent(entry.key, () => entry.value.toString());
|
||||
}
|
||||
}
|
||||
return handler.reject(
|
||||
handler.reject(
|
||||
DioError(
|
||||
error: errorMessages,
|
||||
requestOptions: err.requestOptions,
|
||||
|
||||
@@ -1,2 +1,8 @@
|
||||
typedef JSON = Map<String, dynamic>;
|
||||
typedef PaperlessValidationErrors = Map<String, String>;
|
||||
typedef PaperlessLocalizedErrorMessage = String;
|
||||
|
||||
extension ValidationErrorsUtils on PaperlessValidationErrors {
|
||||
bool get hasFieldUnspecificError => containsKey("non_field_errors");
|
||||
String? get fieldUnspecificError => this['non_field_errors'];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user