Skip to content

Commit

Permalink
fixed build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mdshamoon committed Apr 28, 2024
1 parent 7e7302a commit b81cdb5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion src/components/Flows/TaskSequence.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,15 @@ export const TaskSequence = ({
}

const onMove = (args: any) => {
if (!treeRef.current) {
return;
}
const ref: any = treeRef.current;
const finalIndex = args.index - 1;

const currentNodeIndex = args.dragNodes[0].rowIndex as number;
const data = treeRef.current.props.data;

const data = ref.props.data;

const element = data[currentNodeIndex];

Expand Down
4 changes: 2 additions & 2 deletions src/components/TransformWorkflow/FlowEditor/FlowEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
Tabs,
} from '@mui/material';
import React, { useContext, useEffect, useState } from 'react';
import { OpenINFull } from '@mui/icons-material';
import { OpenInFull } from '@mui/icons-material';
import Canvas from './Components/Canvas';
import ProjectTree from './Components/ProjectTree';
import PreviewPane from './Components/PreviewPane';
Expand Down Expand Up @@ -161,7 +161,7 @@ const LowerSection = ({
<Tab label="Logs" value="logs" />
</Tabs>
<IconButton sx={{ ml: 'auto' }} onClick={setFullScreen}>
<OpenINFull />
<OpenInFull />
</IconButton>
</Box>
<Box>
Expand Down

0 comments on commit b81cdb5

Please sign in to comment.