Skip to content

Commit 6ca40e9

Browse files
authored
fix(gutter): add null check for session.foldWdigets (#5801)
1 parent e08d4fe commit 6ca40e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/layer/gutter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ class Gutter{
625625
const rowCell = cell || this.$getGutterCell(row);
626626
if (rowCell && rowCell.element) {
627627
const foldWidget = rowCell.element.childNodes[1];
628-
if (foldWidget && this.session.foldWidgets[rowCell.row]) {
628+
if (foldWidget && this.session.foldWidgets && this.session.foldWidgets[rowCell.row]) {
629629
dom.setStyle(foldWidget.style, "display", "inline-block");
630630
}
631631
}

0 commit comments

Comments
 (0)