Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Add default value to custom erros

fowczarekcfbee9c4f0e9
diff --git a/saleor/graphql/core/mutations.py b/saleor/graphql/core/mutations.py
index bd2311e5b3..373f26931b 100644
--- a/saleor/graphql/core/mutations.py
+++ b/saleor/graphql/core/mutations.py
@@ -49,7 +49,8 @@ def get_error_fields(error_type_class, error_type_field):
graphene.List(
graphene.NonNull(error_type_class),
description="List of errors that occurred executing the mutation.",
- )
+ ),
+ default_value=[],
)
}