File tree 2 files changed +3
-5
lines changed
apps/web/src/components/app/node-form/hook
packages/pro-config-type/src
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import { AppBuilderModel } from '@/stores/app/models/app-builder.model';
12
12
import { useSchemaContext } from '@/stores/app/schema-provider' ;
13
13
import { refReg } from '@/utils/common-helper' ;
14
14
import { replaceKey , getDiffPath , DiffTypeEnum } from './form-utils' ;
15
+ import { NodeTypeEnum } from '@shellagent/flow-engine' ;
15
16
import {
16
17
getNewKey ,
17
18
getExisiedKey ,
@@ -487,10 +488,7 @@ export function useFieldWatch(formRef: React.RefObject<FormRef>) {
487
488
if ( ! name ) return ;
488
489
if ( name . startsWith ( reservedKeySchema . Enum . context ) ) {
489
490
handleContextChange ( newValue , prevValue , name ) ;
490
- } else if (
491
- name . startsWith ( reservedKeySchema . Enum . inputs ) &&
492
- newValue ?. type === 'state'
493
- ) {
491
+ } else if ( name . startsWith ( reservedKeySchema . Enum . inputs ) ) {
494
492
handleInputsChange ( newValue , prevValue , name ) ;
495
493
} else if ( name . startsWith ( reservedKeySchema . Enum . outputs ) ) {
496
494
handleOutputsChange ( newValue , prevValue , name ) ;
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ type TweetDetail = {
63
63
} ;
64
64
65
65
export type PayloadMap = {
66
- ' CHAT' : {
66
+ CHAT : {
67
67
text ?: string ;
68
68
audio ?: string ;
69
69
file ?: URLString ;
You can’t perform that action at this time.
0 commit comments