diff --git a/packages/frontend-core/src/components/grid/stores/config.ts b/packages/frontend-core/src/components/grid/stores/config.ts index c4c56cbe1c..b7b044b095 100644 --- a/packages/frontend-core/src/components/grid/stores/config.ts +++ b/packages/frontend-core/src/components/grid/stores/config.ts @@ -5,10 +5,10 @@ import { Store as StoreContext } from "." interface ConfigStore { datasource: UIDatasource - initialSortColumn: any + initialSortColumn: Readable initialSortOrder: any initialFilter: any - fixedRowHeight: any + fixedRowHeight: Readable schemaOverrides: any notifySuccess: any notifyError: any diff --git a/packages/frontend-core/src/components/grid/stores/index.ts b/packages/frontend-core/src/components/grid/stores/index.ts index 1706865981..57a730c4c0 100644 --- a/packages/frontend-core/src/components/grid/stores/index.ts +++ b/packages/frontend-core/src/components/grid/stores/index.ts @@ -70,23 +70,19 @@ export type Store = BaseStore & Scroll.Store & { // TODO while typing the rest of stores sort: Writable - initialFilter: Writable - initialSortColumn: Writable - initialSortOrder: Writable subscribe: any config: Writable dispatch: (event: string, data: any) => any notifications: Writable - schemaOverrides: Writable gridID: string props: Writable width: Writable - fixedRowHeight: Writable bounds: Readable height: Readable } & Rows.Store & Reorder.Store & - Resize.Store + Resize.Store & + Config.Store export const attachStores = (context: Store): Store => { // Atomic store creation