Skip to content

Commit 0d2b00d

Browse files
authored
Merge pull request #11 from Glacier-Luo/main
fix: Sometimes DEFAULT_ROW_INDEX may be 0.
2 parents 12e6409 + 5b4ab0a commit 0d2b00d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

transaction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ class ClientTransaction {
304304
private getAnimationKey(keyBytes: number[], response?: Document): string {
305305
const totalTime = 4096;
306306

307-
if (typeof this.DEFAULT_ROW_INDEX !== 'number' || !this.DEFAULT_KEY_BYTES_INDICES) {
307+
if (this.DEFAULT_ROW_INDEX == null || this.DEFAULT_KEY_BYTES_INDICES == null) {
308308
throw new Error("Indices not initialized");
309309
}
310310

0 commit comments

Comments
 (0)