Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Add Helper for Field Processing & Update Code Validation Logic (l…
…angflow-ai#4429) * 📝 (GenericNode/index.tsx): Add import statement for cloneDeep from lodash library 📝 (GenericNode/index.tsx): Add import statement for processNodeAdvancedFields helper function 📝 (GenericNode/index.tsx): Add edges variable to store edges state using useFlowStore hook 📝 (GenericNode/index.tsx): Modify onSuccess callback to process and update node data with advanced fields using processNodeAdvancedFields helper function * ✨ (process-node-advanced-fields.ts): add a new function to process advanced fields of a node based on edges in a graph for better customization and control. * ♻️ (GenericNode/index.tsx): Remove unused import of cloneDeep from lodash to clean up the code and improve maintainability. * 🔧 (process-node-advanced-fields.ts): rename variable edgesWithNode to relevantEdges for clarity and consistency 🐛 (process-node-advanced-fields.ts): fix condition to check relevantEdges length instead of edgesWithNode length for correct logic --------- Co-authored-by: anovazzi1 <[email protected]>
- Loading branch information