Cleanups
This commit is contained in:
parent
0ca0ba6433
commit
a414505eef
|
@ -71,7 +71,7 @@ export const deriveStores = (context: StoreContext): DerivedDatasourceStore => {
|
|||
} = context
|
||||
|
||||
const schema = derived(definition, $definition => {
|
||||
const schema: Record<string, any> | null | undefined = getDatasourceSchema({
|
||||
const schema: Record<string, any> | undefined = getDatasourceSchema({
|
||||
API,
|
||||
datasource: get(datasource) as any,
|
||||
definition: $definition ?? undefined,
|
||||
|
@ -186,7 +186,7 @@ export const createActions = (context: StoreContext): ActionDatasourceStore => {
|
|||
API,
|
||||
datasource: get(datasource) as any,
|
||||
})
|
||||
definition.set((def as any) ?? null)
|
||||
definition.set(def as any)
|
||||
}
|
||||
|
||||
// Saves the datasource definition
|
||||
|
|
|
@ -37,7 +37,7 @@ export default class TableFetch extends DataFetch<UITable, Table> {
|
|||
// Search table
|
||||
try {
|
||||
const res = await this.API.searchTable(tableId, {
|
||||
query: query ?? undefined,
|
||||
query,
|
||||
limit,
|
||||
sort: sortColumn,
|
||||
sortOrder: sortOrder ?? SortOrder.ASCENDING,
|
||||
|
|
|
@ -52,7 +52,7 @@ export default class UserFetch extends DataFetch<
|
|||
|
||||
const finalQuery: SearchFilters = utils.isSupportedUserSearch(rest)
|
||||
? rest
|
||||
: { [BasicOperator.EMPTY]: { email: true } }
|
||||
: { [BasicOperator.EMPTY]: { email: null } }
|
||||
|
||||
try {
|
||||
const opts: SearchUsersRequest = {
|
||||
|
|
Loading…
Reference in New Issue