mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-30 12:39:27 +08:00
Fix: On the multi-model comparison chat page, if there is more than one window, each window can be deleted. (#17523)
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import React from 'react';
|
||||
import { setInitialChatVariableEnabledFieldValue } from '@/utils/chat';
|
||||
import {
|
||||
Circle,
|
||||
|
||||
@@ -226,7 +226,7 @@ const ChatCard = forwardRef(function ChatCard(
|
||||
<p>{t('chat.applyModelConfigs')}</p>
|
||||
</TooltipContent>
|
||||
</Tooltip>
|
||||
{!isLatestChat || chatBoxIds.length === 3 ? (
|
||||
{chatBoxIds.length > 1 && (
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon-sm"
|
||||
@@ -236,7 +236,8 @@ const ChatCard = forwardRef(function ChatCard(
|
||||
>
|
||||
<Trash2 />
|
||||
</Button>
|
||||
) : (
|
||||
)}
|
||||
{isLatestChat && idx < 2 && (
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon-sm"
|
||||
|
||||
Reference in New Issue
Block a user