removeAP bugfix

This commit is contained in:
lingdocs 2022-05-25 21:36:20 -05:00
parent faecbcf83e
commit fdf8714207
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@lingdocs/pashto-inflector", "name": "@lingdocs/pashto-inflector",
"version": "2.6.1", "version": "2.6.2",
"author": "lingdocs.com", "author": "lingdocs.com",
"description": "A Pashto inflection and verb conjugation engine, inculding React components for displaying Pashto text, inflections, and conjugations", "description": "A Pashto inflection and verb conjugation engine, inculding React components for displaying Pashto text, inflections, and conjugations",
"homepage": "https://verbs.lingdocs.com", "homepage": "https://verbs.lingdocs.com",

View File

@ -141,7 +141,7 @@ export function setAP<B extends T.VPSBlock[] | T.EPSBlock[]>(blocks: B, index: n
export function removeAP<B extends T.VPSBlock[] | T.EPSBlock[]>(blocks: B, index: number): B { export function removeAP<B extends T.VPSBlock[] | T.EPSBlock[]>(blocks: B, index: number): B {
const nBlocks = [...blocks] as B; const nBlocks = [...blocks] as B;
blocks.splice(index, 1); nBlocks.splice(index, 1);
return nBlocks; return nBlocks;
} }