fix: Payload incorrect data (pass item_group.name)

This commit is contained in:
marination 2022-04-04 12:33:25 +05:30
parent 7ef1ccbe84
commit 3445682563

View File

@ -205,7 +205,7 @@ def create_item_groups_autocomplete_dict(autocompleter):
return
for item_group in published_item_groups:
payload = json.dumps({"name": item_group, "route": item_group.route})
payload = json.dumps({"name": item_group.name, "route": item_group.route})
autocompleter.add_suggestions(
Suggestion(
string=item_group.name,