mirror of
https://github.com/labring/FastGPT.git
synced 2025-12-25 20:02:47 +00:00
fix: ts
This commit is contained in:
parent
501f263e1b
commit
74ff38059d
|
|
@ -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(),
|
||||
|
|
|
|||
|
|
@ -131,8 +131,8 @@ const EditForm = ({ model, fileSelectConfig, skill, onClose, onSave }: EditFormP
|
|||
h={'28px'}
|
||||
onClick={() => {
|
||||
if (isDirty) {
|
||||
openConfirm(() => {
|
||||
onClose();
|
||||
openConfirm({
|
||||
onConfirm: onClose
|
||||
})();
|
||||
} else {
|
||||
onClose();
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue