Skip to content

Commit

Permalink
fix: include 0 index on node get version
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrvis committed Dec 2, 2023
1 parent 28c8bdd commit 790e0f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export abstract class Node extends Encryptable {
}

getVersion(index?: number): Version {
if (index) {
if (index >= 0) {
if (this.versions && this.versions[index]) {
return this.versions[index];
} else {
Expand Down

0 comments on commit 790e0f7

Please sign in to comment.