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:
balibabu
2026-07-29 16:21:53 +08:00
committed by GitHub
parent b0bbf9fa7f
commit 9c8f4f5fe3
2 changed files with 3 additions and 3 deletions

View File

@@ -1,4 +1,3 @@
import React from 'react';
import { setInitialChatVariableEnabledFieldValue } from '@/utils/chat';
import {
Circle,

View File

@@ -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"