From 2d4d9e84b759eea1206b6b0f58288c3a9d480a04 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Fri, 27 Dec 2024 20:33:07 +0100 Subject: [PATCH] Type other anys --- .../src/components/grid/stores/reorder.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/frontend-core/src/components/grid/stores/reorder.ts b/packages/frontend-core/src/components/grid/stores/reorder.ts index 8f602ab836..b0bc482afb 100644 --- a/packages/frontend-core/src/components/grid/stores/reorder.ts +++ b/packages/frontend-core/src/components/grid/stores/reorder.ts @@ -209,7 +209,11 @@ export const createActions = (context: StoreContext) => { const { sourceColumn, targetColumn, insertAfter } = get(reorder) reorder.set(reorderInitialState) if (sourceColumn !== targetColumn) { - await moveColumn({ sourceColumn, targetColumn, insertAfter }) + await moveColumn({ + sourceColumn: sourceColumn!, + targetColumn: targetColumn!, + insertAfter, + }) } } @@ -219,7 +223,11 @@ export const createActions = (context: StoreContext) => { sourceColumn, targetColumn, insertAfter = false, - }: any) => { + }: { + sourceColumn: string + targetColumn: string + insertAfter?: boolean + }) => { // Find the indices in the overall columns array const $columns = get(columns) let sourceIdx = $columns.findIndex(col => col.name === sourceColumn)