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 d0297cfd74..8758490bee 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 @@ -64,55 +64,56 @@ const ClassList: FC = ({ const handleSideWidth = 3 // Todo Remove; edit topic name return ( - ({ ...item }))} - setList={handleSortTopic} - handle='.handle' - ghostClass='bg-components-panel-bg' - animation={150} - disabled={readonly} - className='space-y-2' - > - { - list.map((item, index) => { - const canDrag = (() => { - if (readonly) - return false + <> + ({ ...item }))} + setList={handleSortTopic} + handle='.handle' + ghostClass='bg-components-panel-bg' + animation={150} + disabled={readonly} + className='space-y-2' + > + { + list.map((item, index) => { + const canDrag = (() => { + if (readonly) + return false - return topicCount >= 2 - })() - return ( -
-
- + return topicCount >= 2 + })() + return ( +
+
+ +
-
- ) - }) - } + ) + }) + } + {!readonly && ( )} - - + ) } export default React.memo(ClassList)