From e9826f7efd671021fb3802077361c5674e4a23d3 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Fri, 27 Dec 2024 17:42:33 +0100 Subject: [PATCH] Revert toSpliced to splice --- packages/frontend-core/src/components/grid/stores/rows.ts | 2 +- packages/frontend-core/tsconfig.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/frontend-core/src/components/grid/stores/rows.ts b/packages/frontend-core/src/components/grid/stores/rows.ts index 7082b9fd03..f494bf51ae 100644 --- a/packages/frontend-core/src/components/grid/stores/rows.ts +++ b/packages/frontend-core/src/components/grid/stores/rows.ts @@ -423,7 +423,7 @@ export const createActions = (context: StoreContext): RowActionStore => { // Add to state if (saved.length) { rows.update(state => { - return state.splice(index + 1, 0, ...saved) + return state.toSpliced(index + 1, 0, ...saved) }) } diff --git a/packages/frontend-core/tsconfig.json b/packages/frontend-core/tsconfig.json index 8ffb3f19be..d06da5a713 100644 --- a/packages/frontend-core/tsconfig.json +++ b/packages/frontend-core/tsconfig.json @@ -2,6 +2,7 @@ "extends": "../../tsconfig.build.json", "compilerOptions": { "target": "ESNext", + "lib": ["ESNext"], "module": "preserve", "moduleResolution": "bundler", "outDir": "./dist",