Skip to content

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

Cosmetics

Marcin Gębala4b4e72b79f4c
diff --git a/saleor/graphql/menu/mutations.py b/saleor/graphql/menu/mutations.py
index ab85c75a2a..7f58e2d4d8 100644
--- a/saleor/graphql/menu/mutations.py
+++ b/saleor/graphql/menu/mutations.py
@@ -67,7 +67,7 @@ class MenuCreate(ModelMutation):
else:
if category:
category = cls.get_node_or_error(
- info, category, errors, 'items', Category)
+ info, category, errors, 'items', only_type=Category)
item['category'] = category
elif collection:
collection = cls.get_node_or_error(