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",