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 fc87bbf commit 302342aCopy full SHA for 302342a
packages/electric-db-collection/src/tag-index.ts
@@ -145,11 +145,8 @@ export function findRowsMatchingPattern(
145
index: TagIndex
146
): Set<RowId> {
147
const { position, value } = getPositionalValue(pattern)
148
- // the index for this position exists
149
- // because we initialize the index with the right length
150
- // as soon as we know the tag length (i.e. when we first receive a tag)
151
- const positionIndex = index[position]!
152
- const rowSet = positionIndex.get(value)
+ const positionIndex = index[position]
+ const rowSet = positionIndex?.get(value)
153
return rowSet ?? new Set()
154
}
155
0 commit comments