We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba182b2 commit 0da7850Copy full SHA for 0da7850
static/app/components/searchQueryBuilder/hooks/useSelectOnDrag.tsx
@@ -86,9 +86,9 @@ function getItemIndexAtPosition(
86
x: number,
87
y: number
88
) {
89
- for (let i = 0; i < keys.length; i++) {
90
- const key = keys[i]!;
91
- const coords = coordinates[key]!;
+ for (const [i, key] of keys.entries()) {
+ const coords = coordinates[key];
+ if (!coords) continue;
92
93
// If we are above this item, we must be in between this and the
94
// previous item on the row above it.
0 commit comments