From 0c728ea58e08b81cb7568f1888c38072ab4649b6 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Tue, 31 Oct 2023 19:59:02 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(store.py):=20return=20result?= =?UTF-8?q?=20without=20modification=20if=20store=5Fapi=5FKey=20is=20not?= =?UTF-8?q?=20provided=20to=20prevent=20potential=20errors?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/api/v1/store.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/backend/langflow/api/v1/store.py b/src/backend/langflow/api/v1/store.py index bbdde22e2..8eaf4d200 100644 --- a/src/backend/langflow/api/v1/store.py +++ b/src/backend/langflow/api/v1/store.py @@ -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,