Skip to content

Commit

Permalink
Fix click on cancel button
Browse files Browse the repository at this point in the history
  • Loading branch information
Frédéric Collonval committed Mar 1, 2021
1 parent c005c19 commit a6ab476
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/diff/NotebookCommentDiffWidget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { NotebookDiffModel } from 'nbdime/lib/diff/model';
import {
CellDiffWidget,
MetadataDiffWidget,
// MetadataDiffWidget,
NotebookDiffWidget
} from 'nbdime/lib/diff/widget';
import { CHUNK_PANEL_CLASS } from 'nbdime/lib/diff/widget/common';
Expand Down Expand Up @@ -127,6 +126,7 @@ export class NotebookCommentDiffWidget extends NotebookDiffWidget {
thread_ => thread.id === thread_.id
);
threads.splice(threadIndex, 1);
widget.node.parentElement.removeChild(widget.node);
widget.dispose();
}
});
Expand Down
1 change: 1 addition & 0 deletions src/components/diff/plaintext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ export class PlainTextDiff extends Widget {
thread_ => thread.id === thread_.id
);
this._props.threads.splice(threadIndex, 1);
widget.node.parentElement.removeChild(widget.node);
widget.dispose();
}
});
Expand Down

0 comments on commit a6ab476

Please sign in to comment.