Skip to content

Commit b147a2c

Browse files
committed
handle null lines
1 parent 1634d77 commit b147a2c

3 files changed

Lines changed: 429 additions & 1 deletion

File tree

src/marks/tip.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export class Tip extends Mark {
155155
for (const line of mark.splitLines(lines)) {
156156
renderLine(that, {value: mark.clipLine(line)});
157157
}
158-
} else {
158+
} else if (lines != null) {
159159
const labels = new Set();
160160
for (const line of lines) {
161161
const {label = ""} = line;

0 commit comments

Comments
 (0)