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(frontend): Preserve customized_name only when explicitly set in node metadata (#11477)
Abhimanyu Yadav7fabbb25c411
diff --git a/autogpt_platform/frontend/src/app/(platform)/build/stores/nodeStore.ts b/autogpt_platform/frontend/src/app/(platform)/build/stores/nodeStore.tsindex f27f75c359..3cc5764338 100644--- a/autogpt_platform/frontend/src/app/(platform)/build/stores/nodeStore.ts+++ b/autogpt_platform/frontend/src/app/(platform)/build/stores/nodeStore.ts@@ -163,9 +163,10 @@ export const useNodeStore = create<NodeStore>((set, get) => ({block_id: node.data.block_id,input_default: node.data.hardcodedValues,metadata: {- // TODO: Add more metadataposition: node.position,- customized_name: node.data.metadata?.customized_name,+ ...(node.data.metadata?.customized_name !== undefined && {+ customized_name: node.data.metadata.customized_name,+ }),},};},