解决lint问题

This commit is contained in:
xintaofei
2026-03-12 21:08:59 +08:00
parent c8f6f87ea5
commit 8989f0fffb
3 changed files with 11 additions and 16 deletions

View File

@@ -532,6 +532,7 @@ const ConversationTabView = memo(function ConversationTabView({
refreshConversations,
selectedAgent,
setExternalId,
setPendingCleanup,
setSyncState,
sharedT,
tWelcome,
@@ -818,7 +819,9 @@ export function ConversationDetailPanel() {
// Update conversation status — use the DB summary (found by
// external_id above) since matchedConversationId may be a virtual
// (negative) ID that won't match any DB record.
const dbId = summary?.id ?? (matchedConversationId > 0 ? matchedConversationId : null)
const dbId =
summary?.id ??
(matchedConversationId > 0 ? matchedConversationId : null)
if (dbId && (!summary || summary.status === "in_progress")) {
updateConversationStatus(dbId, "pending_review")
.then(() => refreshConversations())