This commit is contained in:
archer 2025-12-16 20:48:54 +08:00
parent 501f263e1b
commit 74ff38059d
No known key found for this signature in database
GPG Key ID: 4446499B846D4A9E
3 changed files with 5 additions and 5 deletions

View File

@ -110,7 +110,7 @@ export const UserSelectInteractiveSchema = z.object({
export type UserSelectInteractive = z.infer<typeof UserSelectInteractiveSchema>;
// User input
export const UserInputFormItemSchema = AppFileSelectConfigTypeSchema.extend(
export const UserInputFormItemSchema = AppFileSelectConfigTypeSchema.and(
z.object({
type: z.enum(FlowNodeInputTypeEnum),
key: z.string(),

View File

@ -131,8 +131,8 @@ const EditForm = ({ model, fileSelectConfig, skill, onClose, onSave }: EditFormP
h={'28px'}
onClick={() => {
if (isDirty) {
openConfirm(() => {
onClose();
openConfirm({
onConfirm: onClose
})();
} else {
onClose();

View File

@ -8,7 +8,7 @@ import { getChatItems } from '@fastgpt/service/core/chat/controller';
import { authChatCrud } from '@/service/support/permission/auth/chat';
import { MongoApp } from '@fastgpt/service/core/app/schema';
import { AppErrEnum } from '@fastgpt/global/common/error/code/app';
import { ChatItemValueTypeEnum, ChatRoleEnum } from '@fastgpt/global/core/chat/constants';
import { ChatRoleEnum } from '@fastgpt/global/core/chat/constants';
import {
filterPublicNodeResponseData,
removeAIResponseCite
@ -97,7 +97,7 @@ async function handler(
});
if (showNodeStatus === false) {
item.value = item.value.filter((v) => v.type !== ChatItemValueTypeEnum.tool);
item.value = item.value.filter((v) => v.tools);
}
}
});