From d4e3f4a87d3541bc6e6a95d9b767314aae2d4d52 Mon Sep 17 00:00:00 2001 From: Spencer Torres Date: Fri, 14 Jun 2024 15:17:01 +0000 Subject: [PATCH] revert tslib change + toSpliced change --- .config/tsconfig.json | 1 - src/components/configEditor/AliasTableConfig.tsx | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/tsconfig.json b/.config/tsconfig.json index 9fe0f0b9..a28a7a7c 100644 --- a/.config/tsconfig.json +++ b/.config/tsconfig.json @@ -12,7 +12,6 @@ "baseUrl": "../src", "typeRoots": ["../node_modules/@types"], "resolveJsonModule": true, - "lib": ["ES2023.Array"], }, "ts-node": { "compilerOptions": { diff --git a/src/components/configEditor/AliasTableConfig.tsx b/src/components/configEditor/AliasTableConfig.tsx index 478255c6..d5fdb8ce 100644 --- a/src/components/configEditor/AliasTableConfig.tsx +++ b/src/components/configEditor/AliasTableConfig.tsx @@ -40,7 +40,8 @@ export const AliasTableConfig = (props: AliasTablesConfigProps) => { }])); } const removeEntry = (index: number) => { - let nextEntries = entries.toSpliced(index, 1); + let nextEntries: AliasTableEntry[] = entries.slice(); + nextEntries.splice(index, 1); nextEntries = removeDuplicateEntries(nextEntries); setEntries(nextEntries); onAliasTablesChange(nextEntries);