From fdf8714207162f75dc64b601f21ef288d0e0dd1e Mon Sep 17 00:00:00 2001 From: lingdocs <71590811+lingdocs@users.noreply.github.com> Date: Wed, 25 May 2022 21:36:20 -0500 Subject: [PATCH] removeAP bugfix --- package.json | 2 +- src/lib/phrase-building/blocks-utils.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 00f22ac..90f40ac 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lingdocs/pashto-inflector", - "version": "2.6.1", + "version": "2.6.2", "author": "lingdocs.com", "description": "A Pashto inflection and verb conjugation engine, inculding React components for displaying Pashto text, inflections, and conjugations", "homepage": "https://verbs.lingdocs.com", diff --git a/src/lib/phrase-building/blocks-utils.ts b/src/lib/phrase-building/blocks-utils.ts index 8d11d7b..1c2739f 100644 --- a/src/lib/phrase-building/blocks-utils.ts +++ b/src/lib/phrase-building/blocks-utils.ts @@ -141,7 +141,7 @@ export function setAP(blocks: B, index: n export function removeAP(blocks: B, index: number): B { const nBlocks = [...blocks] as B; - blocks.splice(index, 1); + nBlocks.splice(index, 1); return nBlocks; }