diff --git a/next/web/src/App/Admin/Settings/QuickReplies/index.tsx b/next/web/src/App/Admin/Settings/QuickReplies/index.tsx index 82c43363e..a724cd1b4 100644 --- a/next/web/src/App/Admin/Settings/QuickReplies/index.tsx +++ b/next/web/src/App/Admin/Settings/QuickReplies/index.tsx @@ -187,7 +187,7 @@ export function QuickReplyDetail() { id: id!, name: data.name, content: data.content, - userId: data.visibility === 'private' ? currentUser?.id : undefined, + userId: data.visibility === 'private' ? currentUser?.id : null, fileIds: data.fileIds, tags: data.tags, }); diff --git a/next/web/src/api/quick-reply.ts b/next/web/src/api/quick-reply.ts index bc4431e35..6a683476f 100644 --- a/next/web/src/api/quick-reply.ts +++ b/next/web/src/api/quick-reply.ts @@ -7,7 +7,7 @@ export interface QuickReplySchema { id: string; name: string; content: string; - userId?: string; + userId?: string | null; fileIds?: string[]; tags?: string[]; }