Convert sort

This commit is contained in:
Adria Navarro 2024-12-30 13:28:59 +01:00
parent 4d784b530a
commit 078053a417
1 changed files with 3 additions and 2 deletions

View File

@ -1,8 +1,9 @@
import { derived, get } from "svelte/store"
import { memo } from "../../../utils"
import { SortOrder } from "@budibase/types"
import { Store as StoreContext } from "."
export const createStores = context => {
export const createStores = (context: StoreContext) => {
const { props } = context
const $props = get(props)
@ -17,7 +18,7 @@ export const createStores = context => {
}
}
export const initialise = context => {
export const initialise = (context: StoreContext) => {
const { sort, initialSortColumn, initialSortOrder, schema } = context
// Reset sort when initial sort props change