AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
fix(blocks): allow falsy entries in AddToListBlock (#12028)
DEEVEN SERU4d00e0f179d8
diff --git a/autogpt_platform/backend/backend/blocks/data_manipulation.py b/autogpt_platform/backend/backend/blocks/data_manipulation.pyindex fe878acfa9..577040c6e9 100644--- a/autogpt_platform/backend/backend/blocks/data_manipulation.py+++ b/autogpt_platform/backend/backend/blocks/data_manipulation.py@@ -472,7 +472,7 @@ class AddToListBlock(Block):async def run(self, input_data: Input, **kwargs) -> BlockOutput:entries_added = input_data.entries.copy()- if input_data.entry:+ if input_data.entry is not None:entries_added.append(input_data.entry)updated_list = input_data.list.copy()