Skip to content

Commit 3b99924

Browse files
committed
avoid crashing ci; sliently return instead
1 parent b228cd1 commit 3b99924

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/interactions/brush.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,7 @@ export class Brush extends Mark {
121121
const d = n.__data__;
122122
return (fx === undefined || d?.x === fx) && (fy === undefined || d?.y === fy);
123123
});
124-
if (!node)
125-
throw new Error(
126-
fx === undefined && fy === undefined ? "No brush node found" : "No brush node found for the specified facet"
127-
);
124+
if (!node) return;
128125
const px1 = this._applyX(x1);
129126
const px2 = this._applyX(x2);
130127
const py1 = this._applyY(y1);

0 commit comments

Comments
 (0)