removeAP bugfix
This commit is contained in:
parent
faecbcf83e
commit
fdf8714207
|
@ -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",
|
||||
|
|
|
@ -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 {
|
||||
const nBlocks = [...blocks] as B;
|
||||
blocks.splice(index, 1);
|
||||
nBlocks.splice(index, 1);
|
||||
return nBlocks;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue