From 13195a057c5a430851d04c2cda201507f859a44d Mon Sep 17 00:00:00 2001 From: Smoren Date: Sun, 10 Mar 2024 00:09:57 +0300 Subject: [PATCH] fix --- package.json | 2 +- src/views.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 40f87c9..f4b0db0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "array-view", - "version": "0.1.3", + "version": "0.1.4", "description": "Create array views for easy data manipulation, select elements using Python-like slice notation, enable efficient selection of elements using index lists and boolean masks.", "license": "MIT", "repository": { diff --git a/src/views.ts b/src/views.ts index 71d8661..1dfa2d7 100644 --- a/src/views.ts +++ b/src/views.ts @@ -214,7 +214,7 @@ export class ArrayView implements ArrayViewInterface { * @protected */ protected convertIndex(i: number): number { - return normalizeIndex(i, this.source.length); + return normalizeIndex(i, this.loc.length); } }