Skip to content

Commit

Permalink
Make deleteComment options parameter optional
Browse files Browse the repository at this point in the history
  • Loading branch information
janthurau committed Jan 29, 2025
1 parent 19daf5e commit 6bb15f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/provider/src/TiptapCollabProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ export class TiptapCollabProvider extends HocuspocusProvider {
* @param options A set of options that control how the comment is deleted
* @returns The updated thread or null if the thread or comment is not found
*/
deleteComment(threadId: TCollabThread['id'], commentId: TCollabComment['id'], options: DeleteCommentOptions) {
deleteComment(threadId: TCollabThread['id'], commentId: TCollabComment['id'], options?: DeleteCommentOptions) {
const { deleteContent, deleteThread } = { ...defaultDeleteCommentOptions, ...options }

const thread = this.getYThread(threadId)
Expand Down

0 comments on commit 6bb15f8

Please sign in to comment.