🐛 fix(store.py): return result without modification if store_api_Key is not provided to prevent potential errors
This commit is contained in:
parent
e64d0fcf03
commit
0c728ea58e
1 changed files with 3 additions and 0 deletions
|
|
@ -86,6 +86,9 @@ def list_components(
|
|||
)
|
||||
# Now, from the result, we need to get the components
|
||||
# the user likes and set the liked_by_user to True
|
||||
if not store_api_Key:
|
||||
return result
|
||||
|
||||
liked_by_user_ids = store_service.get_liked_by_user_components(
|
||||
component_ids=[str(component.id) for component in result],
|
||||
api_key=store_api_Key,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue