Skip to content

Commit 529dcb5

Browse files
authored
Update MessagePanelView.js
1 parent c17eb7e commit 529dcb5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/MessagePanelView.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ MessagePanelView.prototype.clear = function () {
186186

187187
MessagePanelView.prototype.remove = function (index) {
188188
this.messages.splice(-index, 1);
189-
this.body.children()[index].remove();
189+
// fix this issue https://github.com/rgbkrk/atom-script/issues/1984
190+
this.body.children().remove(index);
190191
};
191192

192193
MessagePanelView.prototype.add = function (view) {

0 commit comments

Comments
 (0)