diff --git a/esp/src/src/store/Memory.ts b/esp/src/src/store/Memory.ts index ec36b30414c..1bec0fee3e6 100644 --- a/esp/src/src/store/Memory.ts +++ b/esp/src/src/store/Memory.ts @@ -69,7 +69,7 @@ export class Memory extends BaseStore { } } - protected fetchData(request: QueryRequest, options: QueryOptions): ThenableResponse { + protected fetchData(request: QueryRequest, options: QueryOptions = {}): ThenableResponse { options.alphanumColumns = this.alphanumSort; const data = this.queryEngine(request, options)(this.data); data.total = this.data.length; diff --git a/esp/src/src/store/Store.ts b/esp/src/src/store/Store.ts index 41dea790b39..d41d24e893c 100644 --- a/esp/src/src/store/Store.ts +++ b/esp/src/src/store/Store.ts @@ -21,7 +21,7 @@ export interface QueryOptions { start?: number; count?: number; sort?: QuerySort; - alphanumColumns: { [id: string]: boolean }; + alphanumColumns?: { [id: string]: boolean }; } export abstract class BaseStore {