Skip to content

Commit

Permalink
revert tslib change + toSpliced change
Browse files Browse the repository at this point in the history
  • Loading branch information
SpencerTorres committed Jun 14, 2024
1 parent 7e0d189 commit d4e3f4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion .config/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"baseUrl": "../src",
"typeRoots": ["../node_modules/@types"],
"resolveJsonModule": true,
"lib": ["ES2023.Array"],
},
"ts-node": {
"compilerOptions": {
Expand Down
3 changes: 2 additions & 1 deletion src/components/configEditor/AliasTableConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d4e3f4a

Please sign in to comment.