Closed lucaseduoli closed 5 days ago
This pull request includes several changes to the FlowPage component and flowStore in the frontend. The primary focus is on removing unused functions and improving state management for nodes and edges.
FlowPage
flowStore
Improvements to FlowPage component:
src/frontend/src/pages/FlowPage/components/PageComponent/index.tsx
checkOldComponents
elevateEdgesOnSelect
Enhancements to flowStore:
src/frontend/src/stores/flowStore.ts
This pull request includes several changes to the
FlowPage
component andflowStore
in the frontend. The primary focus is on removing unused functions and improving state management for nodes and edges.Improvements to
FlowPage
component:src/frontend/src/pages/FlowPage/components/PageComponent/index.tsx
: Removed the unusedcheckOldComponents
import.src/frontend/src/pages/FlowPage/components/PageComponent/index.tsx
: Removed theelevateEdgesOnSelect
property from the component props.Enhancements to
flowStore
:src/frontend/src/stores/flowStore.ts
: Removed the unusedcheckOldComponents
import.src/frontend/src/stores/flowStore.ts
: Added logic to clean edges when nodes are updated, ensuring the state remains consistent.src/frontend/src/stores/flowStore.ts
: Updated the store state to include the newly cleaned edges.