Skip to content

Commit 17adde8

Browse files
authored
πŸ› fix: fix scope issue (#11719)
fix scope issue
1 parent bdb3eb4 commit 17adde8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

β€Žsrc/app/[variants]/(main)/agent/cron/[cronId]/index.tsxβ€Ž

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
import { EDITOR_DEBOUNCE_TIME } from '@lobechat/const';
44
import { ActionIcon, Flexbox } from '@lobehub/ui';
55
import { useDebounceFn } from 'ahooks';
6-
import { App, message } from 'antd';
7-
import { Empty } from '@lobehub/ui';
6+
import { App, Empty, message } from 'antd';
87
import dayjs, { type Dayjs } from 'dayjs';
98
import { Trash2 } from 'lucide-react';
109
import { memo, useCallback, useEffect, useRef, useState, useSyncExternalStore } from 'react';

β€Žsrc/services/chat/index.tsβ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,8 @@ class ChatService {
347347
// Get the chat config to check streaming preference
348348
const chatConfig = agentChatConfigSelectors.currentChatConfig(getAgentStoreState());
349349

350+
delete (res as any).scope;
351+
350352
const payload = merge(
351353
{
352354
model: DEFAULT_AGENT_CONFIG.model,

0 commit comments

Comments
Β (0)