From ee6383d9b1920d47e18eb6d8ffecf8bd1a2fcad7 Mon Sep 17 00:00:00 2001 From: sdjdd Date: Tue, 26 Dec 2023 14:55:50 +0800 Subject: [PATCH] fix(next/web): exposing private quick reply --- next/web/src/App/Admin/Settings/QuickReplies/index.tsx | 2 +- next/web/src/api/quick-reply.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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[]; }