Skip to content

Commit 2c4646f

Browse files
committed
change appType default value
1 parent 8069fb0 commit 2c4646f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

web/apps/web/src/components/home/filter-tabs/index.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ import { observer } from 'mobx-react-lite';
66
import { useRouter, useSearchParams } from 'next/navigation';
77
import { useEffect } from 'react';
88

9-
import { HomeModel, type AppType } from '@/stores/home/models/home-model';
9+
import { HomeModel } from '@/stores/home/models/home-model';
1010
import { cn } from '@/utils/cn';
11+
import { AppType } from '@shellagent/shared/protocol/extend-config';
1112

1213
const FILTER_OPTIONS: { value: AppType; label: string }[] = [
1314
{ value: 'all', label: 'All' },

web/apps/web/src/stores/app/models/app-builder.model.ts

+3-4
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ import type {
6565
GetAppVersionListResponse,
6666
GetAutomataRequest,
6767
} 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';
7069
import emitter, { EventType } from '@/stores/app/models/emitter';
7170
import { getSchemaByWidget } from '@/stores/app/schema/get-widget-schema';
7271
import {
@@ -107,7 +106,7 @@ export class AppBuilderModel {
107106
@observable metadata: Metadata = {
108107
name: '',
109108
description: '',
110-
app_type: 'all',
109+
app_type: 'chat_bot',
111110
};
112111
flowInstance: ReactFlowInstance | null = null;
113112

@@ -236,7 +235,7 @@ export class AppBuilderModel {
236235
}
237236

238237
get appType() {
239-
return this.metadata.app_type || 'all';
238+
return this.metadata.app_type || 'chat_bot';
240239
}
241240

242241
get runDisabled() {

0 commit comments

Comments
 (0)