Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
myshell-joe committed Jan 21, 2025
1 parent 26d72e1 commit f0c16ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { useReactFlowStore, NodeTypeEnum } from '@shellagent/flow-engine';
import { Select } from '@shellagent/ui';
import { useMemo } from 'react';

import { useAppState } from '@/stores/app/use-app-state';

interface StateSelectorProps {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
Cog8ToothIcon,
ArrowRightIcon,
} from '@heroicons/react/24/outline';
import { useReactFlowStore } from '@shellagent/flow-engine';
import { Button, Input, IconButton, Drawer } from '@shellagent/ui';
import { produce } from 'immer';
import { useInjection } from 'inversify-react';
Expand Down Expand Up @@ -142,14 +141,11 @@ const TransitionConditionEditor = ({
);
};

const { nodes } = useReactFlowStore(state => ({
nodes: state.nodes,
}));

return (
<div className="flex gap-3 flex-col justify-center">
{value?.map?.((condition, index) => (
<ConditionItem
// eslint-disable-next-line react/no-array-index-key
key={`condition-${index}`}
value={condition}
onChange={v => handleChange(index, v)}
Expand Down

0 comments on commit f0c16ca

Please sign in to comment.