Skip to content

Commit

Permalink
fix: commenting issue after ts migration (#2558)
Browse files Browse the repository at this point in the history
  • Loading branch information
im-adithya authored Jun 29, 2022
1 parent 2abc824 commit 5caf923
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/lexical-playground/src/commenting/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,9 +362,11 @@ export class CommentStore {
map.get('timeStamp'),
);
this._withLocalTransaction(() => {
if (parentThread !== undefined && parentThread !== false) {
this.addComment(commentOrThread, parentThread, offset);
}
this.addComment(
commentOrThread,
parentThread as Thread,
offset,
);
});
});
} else if (typeof retain === 'number') {
Expand All @@ -376,9 +378,7 @@ export class CommentStore {
? this._comments[offset]
: parentThread.comments[offset];
this._withLocalTransaction(() => {
if (parentThread !== undefined && parentThread !== false) {
this.deleteComment(commentOrThread, parentThread);
}
this.deleteComment(commentOrThread, parentThread as Thread);
});
offset++;
}
Expand Down

2 comments on commit 5caf923

@vercel
Copy link

@vercel vercel bot commented on 5caf923 Jun 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

lexical – ./packages/lexical-website-new

lexical-git-main-fbopensource.vercel.app
lexical-fbopensource.vercel.app
lexicaljs.com
lexical.dev
lexicaljs.org
www.lexical.dev

@vercel
Copy link

@vercel vercel bot commented on 5caf923 Jun 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

lexical-playground – ./packages/lexical-playground

lexical-playground-git-main-fbopensource.vercel.app
playground.lexical.dev
lexical-playground-fbopensource.vercel.app
lexical-playground.vercel.app

Please sign in to comment.