Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelchia committed Sep 4, 2024
1 parent f41afd8 commit 5b574e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/jupyter-ai/src/chat_handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,11 @@ export class ChatHandler implements IDisposable {
if (newMessage.target) {
this._messages = this._messages.filter(
msg =>
msg.id != newMessage.target &&
!('reply_to' in msg && msg.reply_to == newMessage.target)
msg.id !== newMessage.target &&
!('reply_to' in msg && msg.reply_to === newMessage.target)
);
this._pendingMessages = this._pendingMessages.filter(
msg => msg.reply_to != newMessage.target
msg => msg.reply_to !== newMessage.target
);
} else {
this._messages = [];
Expand Down

0 comments on commit 5b574e4

Please sign in to comment.