Type other anys

This commit is contained in:
Adria Navarro 2024-12-27 20:33:07 +01:00
parent 2afa104c39
commit 2d4d9e84b7
1 changed files with 10 additions and 2 deletions

View File

@ -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)