Improve some typings

This commit is contained in:
Adria Navarro 2024-12-24 12:23:38 +01:00
parent 7c05c5473d
commit 78dd802d3a
2 changed files with 3 additions and 5 deletions

View File

@ -31,6 +31,4 @@ export interface DatasourceNonPlusActions
extends DatasourceBaseActions<UIDatasource, never> {}
export type DatasourceActions =
| DatasourceTableActions
| DatasourceViewActions
| DatasourceNonPlusActions
| DatasourceTableActions & DatasourceViewActions & DatasourceNonPlusActions

View File

@ -168,7 +168,7 @@ export const initialise = (context: StoreContext) => {
field: $sort.column,
order: $sort.order || SortOrder.ASCENDING,
},
})
} as never as UpdateViewRequest)
}
// Also update the fetch to ensure the new sort is respected.
@ -198,7 +198,7 @@ export const initialise = (context: StoreContext) => {
await datasource.actions.saveDefinition({
...$view,
queryUI: $filter,
})
} as never as UpdateViewRequest)
// Refresh data since view definition changed
await rows.actions.refreshData()