Fix types

This commit is contained in:
Adria Navarro 2025-01-08 14:45:00 +01:00
parent 95d3238d1e
commit 83bc2e17db
2 changed files with 3 additions and 3 deletions

View File

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

View File

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