File tree 2 files changed +5
-5
lines changed
components/home/filter-tabs
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,9 @@ import { observer } from 'mobx-react-lite';
6
6
import { useRouter , useSearchParams } from 'next/navigation' ;
7
7
import { useEffect } from 'react' ;
8
8
9
- import { HomeModel , type AppType } from '@/stores/home/models/home-model' ;
9
+ import { HomeModel } from '@/stores/home/models/home-model' ;
10
10
import { cn } from '@/utils/cn' ;
11
+ import { AppType } from '@shellagent/shared/protocol/extend-config' ;
11
12
12
13
const FILTER_OPTIONS : { value : AppType ; label : string } [ ] = [
13
14
{ value : 'all' , label : 'All' } ,
Original file line number Diff line number Diff line change @@ -65,8 +65,7 @@ import type {
65
65
GetAppVersionListResponse ,
66
66
GetAutomataRequest ,
67
67
} from '@/services/app/type' ;
68
- import { editItem , fetchList as fetchFlowList } from '@/services/home' ;
69
- import type { GetListRequest , GetListResponse } from '@/services/home/type' ;
68
+ import { editItem } from '@/services/home' ;
70
69
import emitter , { EventType } from '@/stores/app/models/emitter' ;
71
70
import { getSchemaByWidget } from '@/stores/app/schema/get-widget-schema' ;
72
71
import {
@@ -107,7 +106,7 @@ export class AppBuilderModel {
107
106
@observable metadata : Metadata = {
108
107
name : '' ,
109
108
description : '' ,
110
- app_type : 'all ' ,
109
+ app_type : 'chat_bot ' ,
111
110
} ;
112
111
flowInstance : ReactFlowInstance | null = null ;
113
112
@@ -236,7 +235,7 @@ export class AppBuilderModel {
236
235
}
237
236
238
237
get appType ( ) {
239
- return this . metadata . app_type || 'all ' ;
238
+ return this . metadata . app_type || 'chat_bot ' ;
240
239
}
241
240
242
241
get runDisabled ( ) {
You can’t perform that action at this time.
0 commit comments