Skip to content

Commit e7f0d90

Browse files
committed
fix: node inputs name fix
1 parent f0acfc0 commit e7f0d90

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

web/apps/web/src/components/app/node-form/hook/use-field-watch.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { AppBuilderModel } from '@/stores/app/models/app-builder.model';
1212
import { useSchemaContext } from '@/stores/app/schema-provider';
1313
import { refReg } from '@/utils/common-helper';
1414
import { replaceKey, getDiffPath, DiffTypeEnum } from './form-utils';
15+
import { NodeTypeEnum } from '@shellagent/flow-engine';
1516
import {
1617
getNewKey,
1718
getExisiedKey,
@@ -487,10 +488,7 @@ export function useFieldWatch(formRef: React.RefObject<FormRef>) {
487488
if (!name) return;
488489
if (name.startsWith(reservedKeySchema.Enum.context)) {
489490
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)) {
494492
handleInputsChange(newValue, prevValue, name);
495493
} else if (name.startsWith(reservedKeySchema.Enum.outputs)) {
496494
handleOutputsChange(newValue, prevValue, name);

web/packages/pro-config-type/src/transition.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ type TweetDetail = {
6363
};
6464

6565
export type PayloadMap = {
66-
'CHAT': {
66+
CHAT: {
6767
text?: string;
6868
audio?: string;
6969
file?: URLString;

0 commit comments

Comments
 (0)