Fix types
This commit is contained in:
parent
95d3238d1e
commit
83bc2e17db
|
@ -73,7 +73,7 @@ export const deriveStores = (context: StoreContext): DerivedDatasourceStore => {
|
|||
const schema = derived(definition, $definition => {
|
||||
const schema: Record<string, any> | null | undefined = getDatasourceSchema({
|
||||
API,
|
||||
datasource: get(datasource),
|
||||
datasource: get(datasource) as any,
|
||||
definition: $definition ?? undefined,
|
||||
})
|
||||
if (!schema) {
|
||||
|
@ -184,7 +184,7 @@ export const createActions = (context: StoreContext): ActionDatasourceStore => {
|
|||
const refreshDefinition = async () => {
|
||||
const def = await getDatasourceDefinition({
|
||||
API,
|
||||
datasource: get(datasource),
|
||||
datasource: get(datasource) as any,
|
||||
})
|
||||
definition.set((def as any) ?? null)
|
||||
}
|
||||
|
|
|
@ -254,7 +254,7 @@ export const createActions = (context: StoreContext): RowActionStore => {
|
|||
|
||||
// Reset state properties when dataset changes
|
||||
if (!$instanceLoaded || resetRows) {
|
||||
definition.set($fetch.definition)
|
||||
definition.set($fetch.definition as any)
|
||||
}
|
||||
|
||||
// Reset scroll state when data changes
|
||||
|
|
Loading…
Reference in New Issue