Skip to content

Commit

Permalink
Update index.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
popy01012 authored Dec 12, 2024
1 parent bf6d1de commit 4ff20ab
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { IconButton } from "@flow/components";
import { useT } from "@flow/lib/i18n";
import { type NodeType } from "@flow/types";
import { useCurrentWorkflowId } from "@flow/stores";
import { DEFAULT_ENTRY_GRAPH_ID } from "@flow/global-constants";

type ToolboxItem<T> = {
id: T;
Expand Down Expand Up @@ -73,7 +74,7 @@ const Toolbox: React.FC<Props> = ({ canUndo, canRedo, onRedo, onUndo }) => {
];

const availableTools =
workflowId === "main"
workflowId === DEFAULT_ENTRY_GRAPH_ID
? allTools
: allTools.filter((tool) => tool.id !== "reader" && tool.id !== "writer");

Expand Down

0 comments on commit 4ff20ab

Please sign in to comment.