diff --git a/web/app/components/workflow/nodes/question-classifier/components/class-list.tsx b/web/app/components/workflow/nodes/question-classifier/components/class-list.tsx index 7732d314ba..d0297cfd74 100644 --- a/web/app/components/workflow/nodes/question-classifier/components/class-list.tsx +++ b/web/app/components/workflow/nodes/question-classifier/components/class-list.tsx @@ -10,7 +10,6 @@ import type { Topic } from '@/app/components/workflow/nodes/question-classifier/ import type { ValueSelector, Var } from '@/app/components/workflow/types' import { ReactSortable } from 'react-sortablejs' import { noop } from 'lodash-es' -import { RiDraggable } from '@remixicon/react' import cn from '@/utils/classnames' const i18nPrefix = 'workflow.nodes.questionClassifiers' @@ -80,10 +79,7 @@ const ClassList: FC = ({ if (readonly) return false - if (topicCount < 2) - return false - - return true + return topicCount >= 2 })() return (
= ({ 'group relative rounded-[10px] bg-components-panel-bg', `-ml-${handleSideWidth} min-h-[40px] px-0 py-0`, )}> - {canDrag &&