Skip to content

Commit

Permalink
fix(next/web): exposing private quick reply
Browse files Browse the repository at this point in the history
  • Loading branch information
sdjdd committed Dec 26, 2023
1 parent 0eb76e8 commit ee6383d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion next/web/src/App/Admin/Settings/QuickReplies/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down
2 changes: 1 addition & 1 deletion next/web/src/api/quick-reply.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export interface QuickReplySchema {
id: string;
name: string;
content: string;
userId?: string;
userId?: string | null;
fileIds?: string[];
tags?: string[];
}
Expand Down

0 comments on commit ee6383d

Please sign in to comment.