feat: update react flow library and improve state management

This commit is contained in:
kasia.oczkowska
2025-03-21 15:07:28 +00:00
parent 245d127170
commit 50c3067db3
16 changed files with 323 additions and 558 deletions

View File

@@ -18,6 +18,8 @@ import { StepPropType, SubstepPropType } from 'propTypes/propTypes';
import useTriggers from 'hooks/useTriggers';
import useActions from 'hooks/useActions';
const useNewFlowEditor = process.env.REACT_APP_USE_NEW_FLOW_EDITOR === 'true';
const optionGenerator = (app) => ({
label: app.name,
value: app.key,
@@ -145,7 +147,11 @@ function ChooseAppAndEventSubstep(props) {
title={name}
valid={valid}
/>
<Collapse in={expanded} timeout="auto" unmountOnExit>
<Collapse
in={expanded}
timeout={useNewFlowEditor ? 0 : 'auto'}
unmountOnExit
>
<ListItem
sx={{
pt: 2,