Type other anys
This commit is contained in:
parent
2afa104c39
commit
2d4d9e84b7
|
@ -209,7 +209,11 @@ export const createActions = (context: StoreContext) => {
|
||||||
const { sourceColumn, targetColumn, insertAfter } = get(reorder)
|
const { sourceColumn, targetColumn, insertAfter } = get(reorder)
|
||||||
reorder.set(reorderInitialState)
|
reorder.set(reorderInitialState)
|
||||||
if (sourceColumn !== targetColumn) {
|
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,
|
sourceColumn,
|
||||||
targetColumn,
|
targetColumn,
|
||||||
insertAfter = false,
|
insertAfter = false,
|
||||||
}: any) => {
|
}: {
|
||||||
|
sourceColumn: string
|
||||||
|
targetColumn: string
|
||||||
|
insertAfter?: boolean
|
||||||
|
}) => {
|
||||||
// Find the indices in the overall columns array
|
// Find the indices in the overall columns array
|
||||||
const $columns = get(columns)
|
const $columns = get(columns)
|
||||||
let sourceIdx = $columns.findIndex(col => col.name === sourceColumn)
|
let sourceIdx = $columns.findIndex(col => col.name === sourceColumn)
|
||||||
|
|
Loading…
Reference in New Issue